Владимир Томишинец 5 gadi atpakaļ
vecāks
revīzija
670a64003e
1 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 9 9
      docker-entrypoint.sh

+ 9 - 9
docker-entrypoint.sh

@@ -1,14 +1,14 @@
 #!/usr/bin/env bash
 
-#if [ ! -z "${APPNET}" ]; then
-#   echo "Initial nslookup ${HOSTNAME}.${APPNET}"
-#   nslookup ${HOSTNAME}.${APPNET}
-#   while [ $? -ne 0 ]; do
-#     echo "Waiting for ${HOSTNAME}.${APPNET} to become available"
-#     sleep 1
-#     nslookup ${HOSTNAME}.${APPNET}
-#   done
-#fi
+if [ ! -z "${APPNET}" ]; then
+   echo "Initial nslookup ${HOSTNAME}.${APPNET}"
+   nslookup ${HOSTNAME}.${APPNET}
+   while [ $? -ne 0 ]; do
+     echo "Waiting for ${HOSTNAME}.${APPNET} to become available"
+     sleep 1
+     nslookup ${HOSTNAME}.${APPNET}
+   done
+fi
 sed -i 's/      >> "$CATALINA_OUT" 2>\&1 "\&"/      "\&"/' /opt/tomcat8/bin/catalina.sh
 sed -i 's/touch "$CATALINA_OUT"/#touch "$CATALINA_OUT"/' /opt/tomcat8/bin/catalina.sh
 #sed -i 's/.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler/.handlers = java.util.logging.ConsoleHandler/' /opt/tomcat8/conf/logging.properties