fix: wait for Dex discovery endpoint
This commit is contained in:
parent
6dd6ebce82
commit
707c668dc7
|
|
@ -735,9 +735,10 @@ ENV_EOF
|
|||
sudo docker compose --env-file "${install_dir}/.env" ps
|
||||
)
|
||||
|
||||
until curl -fsS --connect-timeout 5 "http://127.0.0.1:${http_port}/healthz" >/dev/null; do
|
||||
until curl -fsS --connect-timeout 5 "http://127.0.0.1:${http_port}/.well-known/openid-configuration" >/dev/null ||
|
||||
curl -fsS --connect-timeout 5 "http://127.0.0.1:${telemetry_port}/healthz" >/dev/null; do
|
||||
if ((elapsed >= 180)); then
|
||||
echo "Timed out waiting for Dex on http://127.0.0.1:${http_port}/healthz" >&2
|
||||
echo "Timed out waiting for Dex on http://127.0.0.1:${http_port}/.well-known/openid-configuration or http://127.0.0.1:${telemetry_port}/healthz" >&2
|
||||
(cd "${install_dir}" && sudo docker compose --env-file "${install_dir}/.env" ps && sudo docker compose --env-file "${install_dir}/.env" logs --tail=160) >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue