Closed murillomamud closed 1 year ago
Hello,
You must also specify the path which is normally the current dir. So just append a .
to the command.
docker build -t node-rfc-docker .
Should I get any file from this repository and upload in my machine before to execute this command? Thanks.
I have added some steps in the README.md https://github.com/StefanScherer/node-rfc-docker#linux-container You have to download the two files from SAP marketplace.
Stefan sorry for my ignorance, but.. it what's i'm trying to do:
user@instance-1:~$ cd local user@instance-1:~/local$ dir sap user@instance-1:~/local$ cd sap user@instance-1:~/local/sap$ dir nwrfcsdk user@instance-1:~/local/sap$ cd nwrfcsdk user@instance-1:~/local/sap/nwrfcsdk$ dir NWRFC_45-20004565 SAPCAR_721-20010450 user@instance-1:~/local/sap/nwrfcsdk$ docker build -t node-rfc-docker . unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/user/local/sap/nwrfcsdk/Dockerfile: no such file or directory user@instance-1:~/local/sap/nwrfcsdk$
Ah ok. Well you need to change to the directory with the Dockerfile
and create a sub folder download
and put the two files SAPCAR_0-80000935.EXE
and NWRFC_38-20004565.SAR
into that download folder. Then the docker build -t node-rfc-docker .
command will work.
The Docker CLI searches for a Dockerfile in current directory so cannot change into another folder.
I see that you have different name for sapcar. You probably have to adjust the Dockerfile
to fit your names. SAP sometimes another version with other names.
I think that now i'm beginning to understand.. What files from this repository should i upload to my machine?
You need the Dockerfile, the app.js and package.json files.
If you want to learn more about Docker there are some great online tutorials out there, eg. https://training.play-with-docker.com/beginner-linux/ or https://www.katacoda.com/courses/docker
Hi.. I'm trying to run this docker image.. i'm beginner on this, but, when i try to do the build with "docker build -t node-rfc-docker" i received this message: "docker build" requires exactly 1 argument. See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | - [flags]
Build an image from a Dockerfile
What should i do to run this container to run my nodejs app?
Thanks