https://github.com/noenv/docker-nomad
Nomad Agent as Docker Image
https://github.com/noenv/docker-nomad
container docker hashicorp nomad podman
Last synced: about 1 year ago
JSON representation
Nomad Agent as Docker Image
- Host: GitHub
- URL: https://github.com/noenv/docker-nomad
- Owner: NoEnv
- License: mit
- Created: 2018-03-26T08:03:20.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T15:29:07.000Z (over 1 year ago)
- Last Synced: 2024-11-07T16:33:26.267Z (over 1 year ago)
- Topics: container, docker, hashicorp, nomad, podman
- Language: Dockerfile
- Homepage:
- Size: 125 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/noenv/nomad)
[](https://quay.io/repository/noenv/nomad)
[](https://github.com/NoEnv/docker-nomad/actions/workflows/build.yml)
## docker-nomad
#### Description
Nomad Agent as Docker Image.
#### Run
most simple way of running the container
docker run --rm noenv/nomad
advanced usage
docker run --name nomad --net=host --privileged -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /nomad:/nomad -v /etc/os-release:/etc/os-release noenv/nomad agent -config=/nomad/config
> the nomad directory must be the same in the container as well as on the host
example config (/nomad/config/server.hcl)
```
data_dir = "/nomad/data"
server {
enabled = true
bootstrap_expect = 1
}
client {
enabled = true
node_class = "controller"
options {
"driver.whitelist" = "docker",
"docker.auth.config" = "/nomad/.docker/config.json"
}
}
consul {
address = "172.17.0.1:8500"
auto_advertise = true
server_auto_join = true
client_auto_join = true
}
```
#### Source
https://github.com/noenv/docker-nomad