ЛР 5: очередь и асинхронная обработка изображений
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
where docker >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Docker CLI was not found. Start Docker Desktop with Linux containers.
|
||||
exit /b 1
|
||||
)
|
||||
docker info --format "{{.OSType}}"
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\setup.ps1"
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
docker compose --env-file .env config --quiet
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
docker compose --env-file .env up -d --build --wait --wait-timeout 180
|
||||
if errorlevel 1 goto diagnostics
|
||||
|
||||
curl.exe --fail --silent --show-error --retry 10 --retry-connrefused --retry-delay 1 --max-time 5 http://127.0.0.1:8085/health/ready
|
||||
if errorlevel 1 goto diagnostics
|
||||
echo.
|
||||
docker compose --env-file .env ps -a
|
||||
exit /b %errorlevel%
|
||||
|
||||
:diagnostics
|
||||
docker compose --env-file .env ps -a
|
||||
docker compose --env-file .env logs --tail=60 db s3 s3-bootstrap migrate api1 api2 lb broker dispatcher worker
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user