Лабораторная 5: брокер, worker, outbox, варианты изображений, тесты отказов (оценка 4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kalibr456
2026-10-24 15:53:17 +03:00
co-authored by Claude Opus 5.5
parent 276dbdad8a
commit fd6f85d94c
112 changed files with 10533 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Demo hook for the defense: stop or start the worker without touching volumes.
# scripts/worker.sh stop | start | status
set -eu
cd "$(dirname "$0")/.."
case "${1:-}" in
stop) docker compose stop worker ;;
start) docker compose up -d --wait --no-recreate --no-build --no-deps worker ;;
status) docker compose ps worker ;;
*) echo "usage: $0 stop|start|status" >&2; exit 2 ;;
esac