fix: allow graceful runner shutdown during stack maintenance

This commit is contained in:
2026-09-08 17:52:37 +07:00
parent 9f21d349f6
commit 9b6f5c426e
4 changed files with 66 additions and 15 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Operate only this repository's runner stack, from any working directory.
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
if [ "$#" -eq 0 ]; then
printf 'Usage: %s <compose arguments>\n' "$0" >&2
printf 'Apply while idle: stop, then up -d --force-recreate\n' >&2
exit 2
fi
exec docker compose -f docker-compose.yml "$@"