integration layer; merge work on indicators from forks with existing ingestion pipeline

This commit is contained in:
Roberto Treviño Cervantes
2026-10-23 00:00:13 -06:00
parent c1444e2b8d
commit 043f7635f4
80 changed files with 7766 additions and 38 deletions
+17 -4
View File
@@ -3,10 +3,23 @@ set -e
mkdir -p /data
# --no-sync: the image's environments were synced at build time; syncing at
# startup would try to reach the package index (and pull dev deps).
cd /app/Persistance
uv run alembic -c persistance/cacu/alembic.ini upgrade head
uv run alembic -c persistance/cama/alembic.ini upgrade head
uv run alembic -c persistance/tea/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/cacu/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/cama/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/tea/alembic.ini upgrade head
uv run --no-sync alembic -c persistance/governance/alembic.ini upgrade head
cd /app/WebApi
exec uv run python main.py
# Container's own network namespace — no AirPlay conflict here, keep it on
# the port the Dockerfile EXPOSEs and docker-compose.yml maps from.
PORT="${PORT:-5000}"
# gunicorn, not Flask's development server. Long timeout: OCR over a
# multi-page scanned PDF runs inside a single request.
exec uv run --no-sync gunicorn \
--bind "0.0.0.0:${PORT}" \
--workers "${WEBAPI_WORKERS:-2}" \
--timeout "${WEBAPI_TIMEOUT:-600}" \
--access-logfile - \
"webapi:create_app()"