forked from mtusi2026/mtusi2026lab3
ЛР 3 — БВТ-2302 — Сабитов — на 3
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
cd /d "%~dp0.."
|
||||
if "%TARGET_INSTANCE_ID%"=="api1" goto stop
|
||||
if "%TARGET_INSTANCE_ID%"=="api2" goto stop
|
||||
echo Expected TARGET_INSTANCE_ID=api1 or api2
|
||||
exit /b 2
|
||||
:stop
|
||||
docker compose --env-file .env stop -t 3 %TARGET_INSTANCE_ID%
|
||||
if errorlevel 1 exit /b 1
|
||||
>evidence\last-stopped.txt echo %TARGET_INSTANCE_ID%
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user