Merge pull request #1707 from paperclipai/pr/pap-817-embedded-postgres-docker-initdb

Fix embedded Postgres initdb failure in Docker slim containers
This commit is contained in:
Dotta 2026-03-24 12:32:57 -05:00 committed by GitHub
commit 8bebc9599a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 46 additions and 11 deletions

View file

@ -67,7 +67,7 @@ async function createTempDatabase(): Promise<string> {
password: "paperclip",
port,
persistent: true,
initdbFlags: ["--encoding=UTF8", "--locale=C"],
initdbFlags: ["--encoding=UTF8", "--locale=C", "--lc-messages=C"],
onLog: () => {},
onError: () => {},
});

View file

@ -150,7 +150,7 @@ async function ensureEmbeddedPostgresConnection(
password: "paperclip",
port: selectedPort,
persistent: true,
initdbFlags: ["--encoding=UTF8", "--locale=C"],
initdbFlags: ["--encoding=UTF8", "--locale=C", "--lc-messages=C"],
onLog: () => {},
onError: () => {},
});