10 lines
551 B
Bash
10 lines
551 B
Bash
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
# Provision credentials and base containers separately; normal releases only verify.
|
|
test -s /etc/prompt.env || { echo 'Missing /etc/prompt.env; initialize infrastructure separately' >&2; exit 1; }
|
|
for service in postgres objects; do
|
|
id=$(docker compose -p prompt --env-file /etc/prompt.env -f compose.yml ps -q "$service")
|
|
test -n "$id" || { echo "Infrastructure missing: $service; run scripts/init-infra.sh separately" >&2; exit 1; }
|
|
test "$(docker inspect --format '{{.State.Running}}' "$id")" = true
|
|
done
|