3grade_1change

This commit is contained in:
caramelteawithmint
2026-12-04 19:26:02 +03:00
parent 4f21a985f7
commit 22886d6314
10 changed files with 388 additions and 32 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
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"
if [ "$SERVICE_NAME" = "api-1" ]; then SERVICE_NAME="api1"; fi
if [ "$SERVICE_NAME" = "api-2" ]; then SERVICE_NAME="api2"; fi
echo "Stopping container for $SERVICE_NAME..."
docker compose stop "$SERVICE_NAME"