Skip to content

Starting the service on Docker Desktop

Bart De Lathouwer edited this page Sep 15, 2024 · 2 revisions
  1. Right-click the Dockerfile and Build Image...

  2. The VS Code prompt will suggest an image name tag with latest. Accept the default value

    1. This will create and execute the following command: docker build --pull --rm -f "Dockerfile" -t ogc-api-kennissessie:latest "."
    2. The Terminal will display progress messages
  3. Switch to Docker Desktop

  4. The newly create Image is now on Docker Desktop and ready to be spun up. Go To Images

  5. Under Actions, hit the Run button (>) and a Run a new container window will appear. Unfold the Optional settings

    1. Ports:

      1. 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)
    2. Volumes

      1. Point to the data files (datasets and processes) on your host computer (eg /Users/willibrordus/Documents/GitHub/ogc-api-kennissessie/data)
      2. Specify the Container path: an existing path in the container that will be used as a mounting point. Eg /homes/node
    3. Environment variables

      1. Let the server know where we mounted the data in the container: so set DATA_PATH to /homes/node
    4. Hit the Rub button

  6. Container is now running and can be access from a browser, using the port from 5.1a

Clone this wiki locally