feat: port lab4 implementation

This commit is contained in:
kk10
2026-11-13 15:52:39 +03:00
parent 276dbdad8a
commit 36d9b0c8f6
101 changed files with 8426 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -eu
docker compose down
docker compose up -d --wait
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
service=$(docker inspect -f '{{index .Config.Labels "com.docker.compose.service"}}' "$TARGET_INSTANCE_ID")
[ "$service" = "api" ] || { echo "not an api container" >&2; exit 1; }
docker stop -t 5 "$TARGET_INSTANCE_ID" >/dev/null