lab3_and_3grade

This commit is contained in:
caramelteawithmint
2026-11-13 18:01:54 +03:00
parent ec540a1a72
commit 09e26c3c5a
28 changed files with 1494 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
# Проверяем, что нам передали api-1 или api-2
if [ "$TARGET_INSTANCE_ID" != "api-1" ] && [ "$TARGET_INSTANCE_ID" != "api-2" ]; then
echo "Unknown instance: $TARGET_INSTANCE_ID" >&2
exit 1
fi
SERVICE_NAME="$TARGET_INSTANCE_ID"
echo "Stopping container for $SERVICE_NAME..."
docker compose stop "$SERVICE_NAME"