feat(deploy): pre-start drizzle-kit migrate init container
Some checks failed
CI / Tests / 🧪 Test (push) Has been cancelled
Some checks failed
CI / Tests / 🧪 Test (push) Has been cancelled
One-shot migrate container runs drizzle-kit migrate against DATABASE_URL and exits 0 before web boots. web service depends_on with condition service_completed_successfully, so failed migrations block web startup instead of serving 500s against a stale schema. Broker deliberately does NOT depend on migrate - it tolerates DB-down gracefully per DEPLOY_SPEC and should keep serving WS peers even during migration failures. Also excludes apps/cli from docker build context (CLI ships to npm, not containers) to sidestep zod spec drift in its package.json vs lockfile. Known followup: migrate image is 3.27GB due to pnpm catalog: specifiers forcing full-workspace resolution. pnpm deploy bundle trim is a P2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,3 +35,6 @@ Dockerfile
|
||||
*.local
|
||||
.env*.local
|
||||
tmp/
|
||||
|
||||
# Apps not needed in any server image (CLI ships to npm, not to containers)
|
||||
apps/cli/
|
||||
|
||||
Reference in New Issue
Block a user