target-revenue/scripts/docker-entrypoint.sh
tegwick 9e4e84f9ee WP-0011: deploy scaffolding for revenue.coulomb.social
Record T01 package (in-repo k8s/railiance, combined /ui + API app,
dedicated CNPG). Add Dockerfile, healthz, migration/bootstrap scripts,
kustomize manifests, ArgoCD Application (in railiance-platform), and
docs/deployment.md. T05 left open for operator DNS/OpenBao/image push.
2026-08-05 16:41:00 +02:00

15 lines
507 B
Bash
Executable file

#!/bin/sh
# Container entrypoint (WP-0011): combined Trust Service + Control Plane.
set -e
# Optional: run migrations when TRF_RUN_MIGRATIONS=1 (used by migrate Job).
if [ "${TRF_RUN_MIGRATIONS:-0}" = "1" ]; then
exec python /usr/local/bin/apply_migrations.py
fi
if [ "${TRF_BOOTSTRAP_BINKY:-0}" = "1" ]; then
exec python /usr/local/bin/bootstrap_binky.py
fi
exec python -m uvicorn target_revenue.service.combined:app \
--host 0.0.0.0 \
--port 8000 \
--proxy-headers \
--forwarded-allow-ips='*'