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/consul-tempalte-rpm ## check out this code
cd consul-template-rpm ## uhh... you should know
mkdir -p artifacts ## prep the artifacts location
docker build -t ena/consul-template-rpm . ## build the image
docker run -v $PWD/artifacts:/tmp/artifacts -it ena/consul-template-rpm ## run the image and build the RPMs
vagrant up ## provision and build the RPMs
cat build.sh ## read the script
Your RPMs and SRPMs will be copied to the artifacts
folder. Congratulations. You just built RPMs in a controlled environment in an easily reproducible manner.