This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
project_root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$project_root"
|
||||
|
||||
# Stop request producers/consumers first. Named volumes are deliberately kept.
|
||||
docker compose stop ingress api worker dispatcher
|
||||
docker compose restart postgres redis minio broker openbao loki tempo otel-collector prometheus grafana dependency-gateway telemetry-gateway
|
||||
|
||||
# OpenBao seals after restart. Only the operator-side bootstrap script can
|
||||
# unseal it; service containers never receive the root token or unseal key.
|
||||
./scripts/bootstrap-dependencies.sh >/dev/null
|
||||
./scripts/bootstrap-openbao.sh >/dev/null
|
||||
|
||||
# Recreate services so refreshed AppRole SecretID files are mounted. Business
|
||||
# data, sessions, object data, broker state and telemetry volumes are untouched.
|
||||
docker compose up -d --build --force-recreate api worker dispatcher ingress telemetry-gateway
|
||||
|
||||
attempts=0
|
||||
until curl --silent --fail --cacert secrets/pki/ca.crt https://127.0.0.1:${HTTPS_PORT:-8443}/health/ready >/dev/null; do
|
||||
attempts=$((attempts + 1))
|
||||
if [ "$attempts" -ge 60 ]; then
|
||||
printf '%s\n' "HTTPS readiness did not recover after restart" >&2
|
||||
exit 1
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
Reference in New Issue
Block a user