#!/usr/bin/env bash # Validates the reference deployment's Compose files (ADR 0044) in each supported combination: # base, base + proxy, and base + proxy + tunnel. Uses only the committed example env files, copied # to a temporary directory, so it needs no secret and starts nothing. set -Eeuo pipefail repository_root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" cd "$repository_root/deploy" work="$(mktemp -d)" trap 'rm -rf "$work"' EXIT for name in ekklesia postgres object-storage tunnel; do cp "env/${name}.env.example" "$work/${name}.env" done cp env/compose.env.example "$work/compose.env" cat >>"$work/compose.env" <&2 exit 1 fi echo "valid: ${combination}" done