Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
nomad.sh 470 B
#!/bin/bash
# Load the CA and add to the cache
if [[ -z "${PROXY_CA}" ]]; then
echo "Ignore custom certificates for the proxy"
else
echo "Adding cert ${PROXY_CA} to cache"
echo "${PROXY_CA}" > /etc/ssl/certs/proxy.crt
echo "${PROXY_CA}" >> /etc/ssl/certs/ca-certificates.crt
update-ca-certificates
fi
# Start the docker daemon
/usr/local/bin/dockerd.sh &
# Start the nomad agent
/usr/bin/nomad agent -config /etc/nomad.d -log-level=DEBUG &
wait -n
exit $?