Fix Compose tmpfs options and validate stack configuration
Docker test deployment / test-build-deploy (push) Failing after 2m54s

This commit is contained in:
2026-09-16 04:01:06 +08:00
parent 7fa2609191
commit e20133a177
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -11,6 +11,7 @@ if [[ "$mode" == ci ]]; then
export POSTGRES_PASSWORD
POSTGRES_PASSWORD=$(python3 -c 'import secrets; print(secrets.token_urlsafe(48))')
unset CONFIG_VOLUME CONFIG_EXTERNAL
docker compose -f compose.yml --profile ci config --quiet
# Only this unique disposable CI project is removed, including its volumes.
trap 'docker compose -f compose.yml --profile ci down --volumes --remove-orphans >/dev/null' EXIT
docker compose -f compose.yml --profile ci run --rm integration
@@ -53,6 +54,7 @@ fi
# Capture a persistent random password in memory; never echo it or use shell tracing.
export POSTGRES_PASSWORD
POSTGRES_PASSWORD=$(docker run --rm --volume "$CONFIG_VOLUME:/config" --entrypoint python "$DEPLOY_IMAGE" -c 'from pathlib import Path; from adcloud_server.container_entrypoint import bootstrap; print(bootstrap(Path("/config/identity.env"))["POSTGRES_PASSWORD"])')
docker compose -f compose.yml config --quiet
# Initialize databases before switching the public API port.
docker compose -f compose.yml up -d postgres cassandra
docker compose -f compose.yml run --rm cassandra-init