chore(freight-api): upgrade api-common and iamapi-common packages

This commit is contained in:
Nathnael
2026-08-01 10:50:40 +00:00
parent 36f8fe2a7e
commit dfdb79301d
8 changed files with 108 additions and 32 deletions

View File

@@ -61,6 +61,27 @@ services:
- mc alias set e2e http://minio-e2e:9000 e2e-minio e2e-minio-secret && mc mb --ignore-existing e2e/fhc
restart: "no"
# One-shot: runs schema creation + migrations against postgres-freight-e2e,
# then exits. freight-api-e2e no longer migrates itself on boot (migrationsRun
# is false) — this is the CI "migration" stage, run here the same way.
freight-migration-e2e:
build:
context: .
dockerfile: apps/edr-freight-api/Dockerfile
target: migration
secrets:
- npmrc
depends_on:
postgres-freight-e2e:
condition: service_healthy
environment:
DB_HOST: postgres-freight-e2e
DB_PORT: "5432"
DB_USER: edr_e2e
DB_PASSWORD: edr_e2e
DB_NAME: edr_freight_e2e
restart: "no"
freight-api-e2e:
build:
context: .
@@ -74,6 +95,8 @@ services:
condition: service_healthy
minio-init-e2e:
condition: service_completed_successfully
freight-migration-e2e:
condition: service_completed_successfully
environment:
PORT: "3001"
DB_HOST: postgres-freight-e2e
@@ -112,7 +135,8 @@ services:
ports:
- "${E2E_API_PORT:-3101}:3001"
healthcheck:
# Boot runs 240+ migrations + seeders on first start — generous start_period.
# Migrations run in freight-migration-e2e before this container even
# starts (depends_on above) — boot here is just Nest bootstrap + seeders.
test:
[
"CMD",
@@ -123,7 +147,7 @@ services:
interval: 5s
timeout: 5s
retries: 12
start_period: 180s
start_period: 60s
freight-portal-e2e:
build: