add persistent readiness health check

This commit is contained in:
2026-09-06 18:37:11 +03:00
parent b10546b81a
commit 11685867e2
4 changed files with 40 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
cleanup() { docker rm -f "$cid" >/dev/null 2>&1 || true; }
trap cleanup EXIT
for attempt in $(seq 1 30); do
if curl --fail --silent http://127.0.0.1:18080/api/health; then exit 0; fi
if curl --fail --silent http://127.0.0.1:18080/api/ready; then exit 0; fi
sleep 1
done
echo 'Container health endpoint did not become ready' >&2