docker-entrypoint.sh 465 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. echo "Initial nslookup ${ADMIN_HOST}"
  3. nslookup ${ADMIN_HOST}
  4. while [ $? -ne 0 ]; do
  5. echo "Waiting for ${ADMIN_HOST} to become available"
  6. sleep 1
  7. nslookup ${ADMIN_HOST}
  8. done
  9. echo "#Dummy" >> /etc/rc.d/init.d/functions
  10. source /etc/init.d/web-registry-portal status
  11. rm -rf /var/run/web-registry-portal/play.pid
  12. if [ ! -z "$*" ]
  13. then
  14. exec "$@"
  15. else
  16. exec ${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
  17. fi