Skip to content
Snippets Groups Projects
Select Git revision
  • 8cb3fded87e99b1163565a01b3beffac11b01609
  • main default protected
  • add-consul-to-nomad
3 results

nomad.sh

Blame
  • 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 $?