lab4: S3 вложения, compose-стенд, evidence и отчёт

This commit is contained in:
Conloty
2026-11-15 03:48:27 +03:00
parent ec540a1a72
commit 7022b7493d
38 changed files with 4343 additions and 14 deletions
+8
View File
@@ -0,0 +1,8 @@
@echo off
cd /d "%~dp0.."
docker compose restart postgres s3 >nul || exit /b 1
docker compose exec -T postgres sh -c "i=0; until pg_isready -U msg -d msg -q; do i=$((i+1)); [ $i -gt 60 ] && exit 1; sleep 1; done" || exit /b 1
docker compose exec -T s3 sh -c "i=0; until wget -q -O /dev/null http://127.0.0.1:8333/healthz 2>/dev/null; do i=$((i+1)); [ $i -gt 120 ] && exit 1; sleep 1; done" || exit /b 1
docker compose restart api lb >nul || exit /b 1
docker compose up -d --no-build --no-recreate >nul
exit /b %errorlevel%