docker-entrypoint.sh 663 B

123456789101112131415
  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. sed -i 's/ >> "$CATALINA_OUT" 2>\&1 "\&"/ "\&"/' /opt/tomcat8/bin/catalina.sh
  12. sed -i 's/touch "$CATALINA_OUT"/#touch "$CATALINA_OUT"/' /opt/tomcat8/bin/catalina.sh
  13. #sed -i 's/.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler/.handlers = java.util.logging.ConsoleHandler/' /opt/tomcat8/conf/logging.properties
  14. exec "$@"