Read region pgpass through stdin
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 2m57s
Foundation / postgres-tools (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
Foundation / image (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 2m57s
Foundation / postgres-tools (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
Foundation / image (push) Successful in 5s
This commit is contained in:
@@ -44,14 +44,12 @@ spec:
|
||||
containers:
|
||||
- name: evo-server
|
||||
image: aevolution-server
|
||||
# libpq ignores group-readable password files: copy to private memory, then
|
||||
# exec so evo-server is PID 1 and receives SIGTERM directly.
|
||||
# Read the Secret-backed pgpass through stdin; no writable rootfs path or
|
||||
# password environment variable is needed.
|
||||
command: ["/bin/bash", "-c"]
|
||||
args:
|
||||
- |
|
||||
set -eu
|
||||
umask 077
|
||||
cp /run/postgres/pgpass /tmp/pgpass
|
||||
# Builds that wrote this region's history stay recoverable (ADR-0068).
|
||||
retained=()
|
||||
for build in $REGION_RETAINED; do retained+=(--retained "$build"); done
|
||||
@@ -69,10 +67,10 @@ spec:
|
||||
exec /usr/local/bin/evo-server --profile lineage "${retained[@]}" "${inputs[@]}" \
|
||||
"${m10[@]}" \
|
||||
--world "$REGION_WORLD" --region "$REGION_ID" --frame "$REGION_FRAME" \
|
||||
--pg-service /run/postgres/pg_service.conf --pg-passfile /dev/shm/pgpass \
|
||||
--pg-service /run/postgres/pg_service.conf --pg-passfile /dev/stdin \
|
||||
--objects /objects --objects-reserve-mib "$REGION_RESERVE_MIB" \
|
||||
--build "$REGION_BUILD" --lease-profile default \
|
||||
--flush-ms 1000 --drain-ms 20000 --ops-listen 0.0.0.0:9100
|
||||
--flush-ms 1000 --drain-ms 20000 --ops-listen 0.0.0.0:9100 < /run/postgres/pgpass
|
||||
env:
|
||||
- {name: REGION_WORLD, value: set-by-overlay}
|
||||
- {name: REGION_ID, value: set-by-overlay}
|
||||
|
||||
Reference in New Issue
Block a user