13 lines
565 B
Bash
13 lines
565 B
Bash
#!/bin/sh
|
|
# Fail deployment unless the real runtime/EDA bridge healthcheck passes.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if ! docker compose -f codex_pcb/compose.yaml up -d --build --wait --wait-timeout 240; then
|
|
printf '%s\n' 'PCB deployment failed: runtime is not ready. Inspect the failed checks below.' >&2
|
|
docker compose -f codex_pcb/compose.yaml ps || true
|
|
docker compose -f codex_pcb/compose.yaml logs --tail=100 pcb-backend || true
|
|
exit 1
|
|
fi
|
|
printf '%s\n' 'PCB deployment ready: filesystem, native sandbox and read-only EasyEDA bridge verified.'
|