lab3- оценка 4

This commit is contained in:
Rakshasa2
2026-10-21 14:00:40 +03:00
parent 0ab3a341aa
commit 55788bb823
14 changed files with 1747 additions and 21 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
docker compose restart
echo "waiting for readiness ..."
for i in $(seq 1 30); do
if curl -sf http://localhost:8080/health/ready >/dev/null 2>&1; then
echo "ready"; exit 0
fi
sleep 1
done
echo "not ready after 30s" >&2
exit 1