324ba369d9
Row 79 executed its own prescribed remedy without waiting for a second corruption: all ten rig data dirs (8 docker/ nodes + 2 docker-env2/ site nodes) move from virtiofs bind mounts to named docker volumes (scadabridge-<node>-data), seeded in place with both rigs stopped and live-verified (site-a localDbReplicationConnected=true / backlog 0 over the migrated files; env2 stable, 0 restarts). The feared inspectability loss is moot — OrbStack exposes volumes at ~/OrbStack/docker/volumes/. The rebuild surfaced latent env2 drift (pre-Secrets-0.6.2 image): env2 now carries the x-secrets-store-env posture + central data volumes. Row 93's silent maintenance trap is now loud: SiteEventsSchemaCalibrationTests pins the site_events columns/indexes the EventLogPurgeService size model is calibrated against, failing with a pointer to the memo §4 recalibration on any schema drift. Rows 92 (accepted by design) and 94 (standing tripwire) annotated accordingly.
18 lines
562 B
Bash
Executable File
18 lines
562 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
echo "=== ScadaBridge Docker Teardown ==="
|
|
|
|
echo "Stopping ScadaBridge application containers..."
|
|
docker compose -f "$SCRIPT_DIR/docker-compose.yml" down
|
|
|
|
echo ""
|
|
echo "Teardown complete."
|
|
echo "Node data (SQLite DBs) is preserved in named docker volumes; logs in node directories."
|
|
echo ""
|
|
echo "To also remove persistent data:"
|
|
echo " docker volume rm \$(docker volume ls -q --filter name=scadabridge-central-node --filter name=scadabridge-site-)"
|
|
echo " rm -rf $SCRIPT_DIR/*/logs"
|