#!/bin/sh # Validates docker-compose.remote-speaker.yaml with example env files. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd)" COMPOSE="$ROOT/deploy/compose/docker-compose.remote-speaker.yaml" ENV1="$ROOT/deploy/compose/.env.remote-speaker.example" ENV2="$ROOT/deploy/compose/.env.remote-speaker-tls.example" if ! command -v docker >/dev/null 2>&1; then echo "validate-remote-speaker-compose: docker not found, skipping" exit 0 fi # Mock required vars for compose config (not used at runtime). export EVOBGP_AGENT_SECRET=ci-test-secret export EVOBGP_CONTROL_PLANE_URL=https://cp.example.com export EVOBGP_NODE_TOKEN=ci-test-token export EVOBGP_SPEAKER_ID=00000000-0000-0000-0000-000000000001 export EVOBGP_BUNDLE_PUBKEY_BASE64=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= export AGENT_DOMAIN=agent.ci.example.com export LETSENCRYPT_EMAIL=ci@example.com export CF_DNS_API_TOKEN=ci-token export PANEL_IP_WHITELIST=127.0.0.1/32 docker compose -f "$COMPOSE" --env-file "$ENV1" --env-file "$ENV2" config >/dev/null echo "validate-remote-speaker-compose: ok"