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>
22 lines
939 B
Bash
Executable File
22 lines
939 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Deploy on performance hardware — deploy the full set of applications.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# shellcheck source=scripts/tests/environment/utils/common.sh
|
|
source "${SCRIPT_DIR}/utils/common.sh"
|
|
|
|
echo "Deploying matomo (full cycle: deploy + update pass) so it becomes reachable via its dedicated inventory entry."
|
|
make compose-deploy mode=reinstall apps="${MATOMO_APP}" full_cycle=true
|
|
inspect
|
|
|
|
echo "Re-trusting the CA after the fresh deploy rebuilt the certificates."
|
|
make network-trust-ca
|
|
|
|
echo "Verifying matomo is now reachable after its dedicated deploy."
|
|
assert_http_status 200 "${MATOMO_URL}"
|
|
|
|
echo "Verifying the dashboard is no longer reachable after the matomo-only fresh deploy."
|
|
# Exception: Expect 000 because curl aborts in TLS before HTTP when the removed hostname is missing from the certificate SANs.
|
|
assert_http_status 000 "${DASHBOARD_URL}"
|