-
Notifications
You must be signed in to change notification settings - Fork 2
Starting the service on Docker Desktop
Bart De Lathouwer edited this page Sep 15, 2024
·
2 revisions
-
Right-click the
Dockerfile
andBuild Image...
-
The VS Code prompt will suggest an image name tag with latest. Accept the default value
- This will create and execute the following command:
docker build --pull --rm -f "Dockerfile" -t ogc-api-kennissessie:latest "."
- The Terminal will display progress messages
- This will create and execute the following command:
-
Switch to
Docker Desktop
-
The newly create Image is now on Docker Desktop and ready to be spun up. Go To
Images
-
Under
Actions
, hit theRun
button (>) and aRun a new container
window will appear. Unfold theOptional settings
-
Ports:
- Use a free
port
on your host computer. If you don't know if a port ia availble try:8085
- this is good choice for a test webservice (and are probably free)
- Use a free
-
Volumes
- Point to the data files (datasets and processes) on your host computer (eg
/Users/willibrordus/Documents/GitHub/ogc-api-kennissessie/data
) - Specify the
Container path
: an existing path in the container that will be used as a mounting point. Eg/homes/node
- Point to the data files (datasets and processes) on your host computer (eg
-
Environment variables
- Let the server know where we mounted the data in the container: so set
DATA_PATH
to/homes/node
- Let the server know where we mounted the data in the container: so set
-
Hit the
Rub
button
-
-
Container is now running and can be access from a browser, using the port from 5.1a