container-entrypoint.sh 293 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. if [[ "${RUN_DB_MIGRATIONS:-true}" == "true" ]]; then
  4. alembic upgrade head
  5. fi
  6. if [[ "${RUN_RUNTIME_PREFLIGHT:-true}" == "true" ]]; then
  7. python -m supply_infra.pipeline.preflight
  8. fi
  9. exec /usr/bin/supervisord -c /app/deploy/supervisord.pipeline.conf