RPM build for creating Nomad packages for use in the ENA environment.
The RPMs may be built with Docker, Vagrant, or manual.
Whatever way you choose you will need to do a few basic things first.
git clone https://github.com/myENA/nomad-rpm ## check out this code
cd nomad-rpm ## uhh... you should know
mkdir -p artifacts ## prep the artifacts location
docker build -t ena/nomad-rpm . ## build the image
docker run -v $PWD/artifacts:/tmp/artifacts -it ena/nomad-rpm ## run the image and build the RPMs
vagrant up ## provision and build the RPMs
cat build.sh ## read the script
Two RPMs will be copied into the artifacts
folder:
nomad-<version>-<release>.el7.centos.x86_64.rpm
- The binary and systemd service definition (required)nomad-config-<version>-<release>.el7.centos.x86_64.rpm
- Example agent configuration (recommended)
- Install the RPM(s) that you need
- Review and edit (if needed)
/etc/sysconfig/nomad
and associated config under/etc/nomad.d/*
(config package) - Start the service and tail the logs:
systemctl start nomad.service
andjournalctl -f --no-pager -u nomad
- Optionally start on reboot with:
systemctl enable nomad.service
Config files are loaded in lexicographical order from the config
specified in /etc/sysconfig/nomad
(config package).
You may modify and/or add to the provided configuration as needed.
See the nomadproject.io website.