diff --git a/Dockerfile b/Dockerfile index dbb8331..57a4b5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ COPY ./api-eventbus/etc /etc/rabbitmq COPY ./api-eventbus/entrypoint.sh ./api-eventbus/wait-for-it.sh / COPY ./.app.config / +RUN apk update && apk add ca-certificates # RUN rabbitmq-plugins enable --offline rabbitmq_prometheus EXPOSE 5672 diff --git a/api-eventbus/entrypoint.sh b/api-eventbus/entrypoint.sh index 698ff1c..991d9f3 100755 --- a/api-eventbus/entrypoint.sh +++ b/api-eventbus/entrypoint.sh @@ -3,6 +3,8 @@ set +e update-resolv +update-ca-certificates + waitForService() { ./wait-for-it.sh $1 -t 2 1>/dev/null 2>&1 @@ -16,9 +18,12 @@ waitForService() done } -waitForService "api-registry:8500" -# waitForService "logger.service.ego.io:24224" -waitForService "api-logger:24224" +waitForService "api-registry:8501" +waitForService "cache.service.ego.io:6379" +waitForService "logger.service.ego.io:24224" +waitForService "postgresdb.service.ego.io:5432" +# waitForService "api-logger:24224" +# waitForService "api-cache:6379" set -euo pipefail