Prepare verified laboratory 6 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 470d9d6f1e
commit 7d56e52fd0
335 changed files with 31206 additions and 72 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
[ -n "${TARGET_INSTANCE_ID:-}" ] || exit 2
for id in $("$ROOT/scripts/compose.sh" ps -q api); do
host=$(docker exec "$id" cat /tmp/messenger-instance-id)
if [ "$host" = "$TARGET_INSTANCE_ID" ]; then
docker stop --time 8 "$id"
exit 0
fi
done
exit 3