nexus/packages/db/src
dotta 5602576ae1 Fix embedded Postgres initdb failure in Docker slim containers
The embedded-postgres library hardcodes --lc-messages=en_US.UTF-8 and
strips the parent process environment when spawning initdb/postgres.
In slim Docker images (e.g. node:20-bookworm-slim), the en_US.UTF-8
locale isn't installed, causing initdb to exit with code 1.

Two fixes applied:
1. Add --lc-messages=C to all initdbFlags arrays (overrides the
   library's hardcoded locale since our flags come after in the spread)
2. pnpm patch on embedded-postgres to preserve process.env in spawn
   calls, preventing loss of PATH, LD_LIBRARY_PATH, and other vars

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 11:48:59 -05:00
..
migrations Address Greptile review on board CLI auth 2026-03-23 08:46:05 -05:00
schema Address Greptile review on board CLI auth 2026-03-23 08:46:05 -05:00
backup-lib.ts Fix worktree minimal clone startup 2026-03-10 10:13:05 -05:00
backup.ts Add configurable automatic database backup scheduling 2026-03-04 18:03:23 -06:00
client.test.ts Fix embedded Postgres initdb failure in Docker slim containers 2026-03-24 11:48:59 -05:00
client.ts Add routines automation workflows 2026-03-19 08:39:24 -05:00
index.ts Harden embedded postgres adoption on startup 2026-03-16 21:03:05 -05:00
migrate.ts Fix dev migration prompt and embedded db:migrate 2026-03-10 15:31:05 -05:00
migration-runtime.ts Fix embedded Postgres initdb failure in Docker slim containers 2026-03-24 11:48:59 -05:00
migration-status.ts feat(costs): add billing, quota, and budget control plane 2026-03-16 15:11:01 -05:00
runtime-config.test.ts Fix env-sensitive worktree and runtime config tests 2026-03-11 16:38:31 -05:00
runtime-config.ts Fix dev migration prompt and embedded db:migrate 2026-03-10 15:31:05 -05:00
seed.ts Expand data model with companies, approvals, costs, and heartbeats 2026-02-17 09:07:22 -06:00