Добавить варианты изображений, очистку staging, replay и сценарии отказа

This commit is contained in:
2026-11-20 06:18:12 +03:00
parent a0ec26d96d
commit e376ede0a2
12 changed files with 258 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$root"
: "${TARGET_INSTANCE_ID:?}"
for container in $(docker compose ps -q api); do
hostname="$(docker inspect --format '{{.Config.Hostname}}' "$container")"
case "$TARGET_INSTANCE_ID" in
"$hostname"-????????)
docker compose ps -q api | grep -Fx "$container" >/dev/null
docker stop -t 2 "$container" >/dev/null
exit 0
;;
esac
done
exit 1