forked from mtusi2026/mtusi2026lab7
лр7: Docker-прогон, evidence, исправления
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user