mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Rename the scripts/tests/environment deploy_* steps (07/08/09) to compose_*; add 12_swarm.sh (svc-db-mariadb via the swarm-* targets) and 13_roundtrip.sh (svc-db-postgres via make roundtrip), with MARIADB_APP/POSTGRES_APP in common.sh. Rename every make act-swarm-* target to make swarm-* (drop the act- prefix) across the Makefile (moved to the alphabetical slot), the deploy/act, deploy/swarm and e2e helper scripts, and the agent iteration docs. Strip mid-code narration comments from the touched scripts per the comment policy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
578 B
Bash
Executable File
19 lines
578 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# shellcheck source=scripts/tests/deploy/swarm/00_topology.sh
|
|
. "$(dirname "$0")/../swarm/00_topology.sh"
|
|
|
|
node="${node:-${MGR}}"
|
|
|
|
if ! docker inspect --format '{{.State.Running}}' "${node}" 2>/dev/null | grep -q '^true$'; then
|
|
echo "ERROR: container '${node}' is not running." >&2
|
|
echo "Available swarm-test containers (if any):" >&2
|
|
docker ps --format ' {{.Names}}\t{{.Status}}' |
|
|
grep -E 'swarm-|nfs-server' >&2 ||
|
|
echo " (none — run \`make swarm-zombie app=<id>\` first)" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec docker exec -it "${node}" bash
|