Implement lab 7 transport security and worker containment

This commit is contained in:
Artyom
2026-11-13 23:58:00 +03:00
parent 20afc2c790
commit 170a76a6ce
543 changed files with 96442 additions and 65 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
COMPOSE=${COMPOSE:-docker compose}
service=${WORKER_SERVICE:-worker}
case "${1:-}" in
stop) $COMPOSE stop -t 10 "$service" ;;
kill) $COMPOSE kill -s KILL "$service" ;;
start) $COMPOSE up -d --no-deps --wait --wait-timeout 60 "$service" ;;
status) $COMPOSE ps -a --format '{{.Service}} {{.State}} {{.Status}}' "$service" ;;
*) echo "usage: $0 stop|kill|start|status" >&2; exit 2 ;;
esac