This commit is contained in:
2026-10-16 16:18:35 +03:00
parent 65003b6119
commit c90ff137c7
9 changed files with 1206 additions and 21 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
default_instance="mtusi-lab2-app"
if [[ -n "${TARGET_INSTANCE_ID:-}" ]]; then
docker stop "${TARGET_INSTANCE_ID}" >/dev/null 2>&1 || true
echo "Stopped ${TARGET_INSTANCE_ID}"
exit 0
fi
docker stop "${default_instance}" >/dev/null 2>&1 || true
printf '%s\n' "Stopped ${default_instance}"