docker-entrypoint.sh 297 B

12345678910111213
  1. #!/usr/bin/env bash
  2. if [ ! -z "${APPNET}" ]; then
  3. echo "Initial nslookup ${HOSTNAME}.${APPNET}"
  4. nslookup ${HOSTNAME}.${APPNET}
  5. while [ $? -ne 0 ]; do
  6. echo "Waiting for ${HOSTNAME}.${APPNET} to become available"
  7. sleep 1
  8. nslookup ${HOSTNAME}.${APPNET}
  9. done
  10. fi
  11. exec "$@"