mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +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>
17 lines
503 B
Bash
Executable File
17 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
: "${node:?node= must be set, e.g. node=swarm-mgr-01}"
|
|
|
|
if ! docker inspect --format '{{.State.Running}}' "${node}" 2>/dev/null | grep -q '^true$'; then
|
|
echo "ERROR: container '${node}' is not running. Run \`make swarm-zombie app=<id>\` first." >&2
|
|
exit 1
|
|
fi
|
|
|
|
repo_root="$(cd "$(dirname "$0")/../../../.." && pwd)"
|
|
cd "${repo_root}"
|
|
|
|
git ls-files -z -m -o --exclude-standard |
|
|
tar --null -cf - -T - |
|
|
docker exec -i "${node}" tar -C /opt/infinito-nexus -xpf -
|