lab3- оценка 4
This commit is contained in:
Executable
+12
@@ -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
|
||||
Reference in New Issue
Block a user