This commit is contained in:
Piotr Biernat 2024-12-05 16:40:05 +01:00
parent 2671dde183
commit db1b117e7f
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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