Tries to follow the packaging guidelines from Fedora.
- Binary:
/usr/bin/nomad
- Config:
/etc/nomad.d/
- Shared state:
/var/lib/nomad/
- Sysconfig:
/etc/sysconfig/nomad
The version number is hardcoded into the SPEC, however should you so choose, it can be set explicitly by passing an argument to rpmbuild
directly:
$ rpmbuild --define "_version 0.8.10"
-
Build the Docker image. Note that you must amend the
Dockerfile
header if you want a specific OS build (default iscentos7
).docker build --rm -t nomad:build .
-
Run the build.
docker run --rm -v $PWD:/build nomad:build
-
Retrieve the built RPM from
$PWD/rpmbuild/RPMS
.
- Install the RPM.
- Put config files in
/etc/nomad.d/
. - Change command line arguments to nomad in
/etc/sysconfig/nomad
.- Add
-bootstrap
only if this is the first server and instance.
- Add
- Start the service and tail the logs
systemctl start nomad.service
andjournalctl -f
. - To enable at reboot
systemctl enable nomad.service
. - Nomad may complain about the
GOMAXPROCS
setting. This is safe to ignore; however, the warning can be supressed by uncommenting the appropriate line in/etc/sysconfig/nomad
.
Config files are loaded in lexical order from the config-dir
. A
sample config is provided.
See the nomadproject.io website.