Files
poseidon/deploy/nomad-ci/README.md
sirkrypt0 aae0c6e377 Migrate from GitLab CI/CD to GitHub actions (#1)
This also adds a new Dockerfile for a e2e-test-image, as the old
image was hosted on our private registry. By having the image located
near the code, we don't have to rely on images on external registries.
2021-08-05 13:40:48 +02:00

660 B

Nomad-in-Docker Image

The Dockerfile in this folder creates a Docker image that contains Docker and Nomad.

Running the image requires the following Docker options:

  • Allow Nomad to use mount: --cap-add=SYS_ADMIN
  • Allow Nomad to use bind mounts: --security-opt apparmor=unconfined
  • Add access to Docker daemon: -v /var/run/docker.sock:/var/run/docker.sock
  • Map port to host: -p 4646:4646

A complete command to run the container is as follows.

docker run --rm --name nomad \
  --cap-add=SYS_ADMIN \
  --security-opt apparmor=unconfined \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -p 4646:4646 \
  nomad-ci