Skip to content

Fix dev container: initialize PostgreSQL at runtime#403

Merged
bmbouter merged 1 commit intomainfrom
fix-dev-container-pg-init-runtime
Apr 22, 2026
Merged

Fix dev container: initialize PostgreSQL at runtime#403
bmbouter merged 1 commit intomainfrom
fix-dev-container-pg-init-runtime

Conversation

@bmbouter
Copy link
Copy Markdown
Owner

PostgreSQL requires data dir owned by current UID. OpenShift assigns random UIDs. Move initdb to entrypoint.

PostgreSQL requires the data directory to be owned by the current UID.
On OpenShift, containers run with a random UID (e.g., 1000830000), not
the build-time UID. Moving initdb to the entrypoint ensures it runs as
whatever UID OpenShift assigns. The data dir is empty at start (no
pre-baked state to go stale) and initialization adds ~2 seconds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bmbouter bmbouter merged commit 373d307 into main Apr 22, 2026
@bmbouter bmbouter deleted the fix-dev-container-pg-init-runtime branch April 22, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant