Skip to content

Commit eff9119

Browse files
committed
fix(data-manager): bundle transitous-core in runtime image + thread transit env to daemon
Two deploy-blocking gaps found bringing mirror mode up on staging: - The runtime image copies each source-only workspace package explicitly, but packages/transitous-core was only added to the deps/builder stages, not the final stage — so the container crash-looped with ERR_MODULE_NOT_FOUND at startup (the CI image *build* passes; only runtime resolution fails). Add it to the runtime COPY list. - The data-manager service.json passes env vars explicitly (no env_file), and never included TRANSITOUS_COUNTRIES or TRANSIT_SOURCE — so the daemon ignored the operator country scope (ran global) and could not be switched to build. Thread TRANSIT_SOURCE, TRANSITOUS_COUNTRIES, the artifact + feed-proxy URLs, the repo URL, and the cron overrides through to the container.
1 parent dd57ab0 commit eff9119

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

services/data-manager/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ COPY --from=prod-deps /app/packages/db-schema/node_modules ./packages/db-schema/
137137
COPY packages/hardlinks/ ./packages/hardlinks/
138138
COPY packages/motis-feed-proxy-config/ ./packages/motis-feed-proxy-config/
139139
COPY packages/poi-source-registry/ ./packages/poi-source-registry/
140+
COPY packages/transitous-core/ ./packages/transitous-core/
140141
COPY packages/core/ ./packages/core/
141142
COPY --from=builder /app/services/data-manager/dist ./services/data-manager/dist
142143
COPY services/data-manager/package.json ./services/data-manager/

services/data-manager/service.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
"MOTIS_STAGING_URL": "${MOTIS_STAGING_URL:-http://motis-staging:8080}",
2727
"OPENMAPX_REGION": "${OPENMAPX_REGION:-}",
2828
"MOTIS_REGION": "${MOTIS_REGION:-}",
29+
"TRANSIT_SOURCE": "${TRANSIT_SOURCE:-}",
30+
"TRANSITOUS_COUNTRIES": "${TRANSITOUS_COUNTRIES:-}",
31+
"TRANSITOUS_ARTIFACT_BASE_URL": "${TRANSITOUS_ARTIFACT_BASE_URL:-}",
32+
"OPENMAPX_TRANSITOUS_FEED_PROXY_URL": "${OPENMAPX_TRANSITOUS_FEED_PROXY_URL:-}",
33+
"TRANSITOUS_REPO_URL": "${TRANSITOUS_REPO_URL:-}",
34+
"TRANSITOUS_SYNC_CRON": "${TRANSITOUS_SYNC_CRON:-}",
35+
"TRANSITOUS_STALENESS_CHECK_CRON": "${TRANSITOUS_STALENESS_CHECK_CRON:-}",
36+
"TRANSITOUS_FEED_PROXY_RELOAD_CRON": "${TRANSITOUS_FEED_PROXY_RELOAD_CRON:-}",
2937
"POI_INGEST_BOOTSTRAP": "${POI_INGEST_BOOTSTRAP:-true}",
3038
"OVERTURE_ENABLED": "${OVERTURE_ENABLED:-}",
3139
"UTMC_USERNAME": "${UTMC_USERNAME:-}",

0 commit comments

Comments
 (0)