Владимир Томишинец 5 anos atrás
pai
commit
208eb87914
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      docker-entrypoint.sh

+ 3 - 2
docker-entrypoint.sh

@@ -7,7 +7,8 @@ if [ ! -z "${APPNET}" ]; then
     for i in $(hostname -i);do
         if [[ $(echo ${i}|cut -d. -f1-3) == $(dig tasks.${ADMIN_HOST}.${APPNET} +short|cut -d. -f1-3) ]];then
 #            sed -i 's/local.hostname = \${HOSTNAME}.\${APPNET}/local.hostname = ${i}/' /etc/web-registry-portal/application.conf
-            host_ip=${i}
+#            host_ip=${i}
+            export TASKS_SERVICE_IP=${i}
         fi
     done
     echo $(dig tasks.${ADMIN_HOST}.${APPNET} +short) > /tmp/admin_ip
@@ -21,5 +22,5 @@ if [ ! -z "$*" ]
 then
     exec "$@"
 else
-    exec export TASKS_SERVICE_IP=${host_ip};${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
+    exec ${WEB_REGISTRY_BIN} ${WEB_REGISTRY_CUSTOM_OPTS} ${WEB_REGISTRY_OPTS}
 fi