lab4: S3 attachments (Silo), negative tests, cleanup-job, limited S3 credentials (grade 4)

This commit is contained in:
2026-10-21 19:39:26 +03:00
parent ec540a1a72
commit 652dfda832
35 changed files with 3557 additions and 18 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
docker compose --env-file .env restart postgres cache s3 api
i=0
while [ $i -lt 90 ]; do
if curl -sf http://localhost:8080/health/ready > /dev/null 2>&1; then
exit 0
fi
sleep 1
i=$((i + 1))
done
echo "stack did not become healthy in 90 seconds" >&2
exit 1