fix(orchestrator): symlink prisma/schema.prisma to resolve Docker build root detection #707

Merged
jason.woltje merged 1 commits from fix/ms23-prisma-docker-vs-ci into main 2026-03-07 16:17:21 +00:00
Owner

Prisma was traversing from api/prisma/ upward looking for the package owner and landing at /app/apps/ (no package.json → auto-install → failure).

Fix: symlink apps/orchestrator/prisma/schema.prisma → ../../api/prisma/schema.prisma so the orchestrator 'owns' its schema. Docker COPY follows symlinks; CI resolves the symlink in the checkout. prisma:generate runs fully within the orchestrator package context.

Supersedes PRs #703, #704, #705, #706.

Prisma was traversing from api/prisma/ upward looking for the package owner and landing at /app/apps/ (no package.json → auto-install → failure). Fix: symlink apps/orchestrator/prisma/schema.prisma → ../../api/prisma/schema.prisma so the orchestrator 'owns' its schema. Docker COPY follows symlinks; CI resolves the symlink in the checkout. prisma:generate runs fully within the orchestrator package context. Supersedes PRs #703, #704, #705, #706.
jason.woltje added 1 commit 2026-03-07 16:17:17 +00:00
fix(orchestrator): symlink prisma schema for cross-env generate
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
c0e3e39ac5
Create apps/orchestrator/prisma/schema.prisma as a symlink pointing to
../../api/prisma/schema.prisma. This gives the orchestrator 'ownership'
of its local schema copy so Prisma does not traverse into the api package
looking for project-root context.

- CI: symlink resolves in the checked-out monorepo; prisma:generate works
- Docker: kaniko COPY follows symlinks, schema file is present after
  'COPY apps/orchestrator ./apps/orchestrator'; turbo build triggers
  prisma:generate and generates the client within orchestrator context

Revert prisma:generate script to canonical path (./prisma/schema.prisma).
Remove deprecated 'prisma' config key from package.json.
Simplify Dockerfile builder stage (no more manual generate RUN).
jason.woltje merged commit ef674206e7 into main 2026-03-07 16:17:21 +00:00
Sign in to join this conversation.