Skip to content

Fix dev container: chmod 700 PGDATA before initdb#406

Merged
bmbouter merged 1 commit intomainfrom
fix-dev-container-pgdata-perms
Apr 22, 2026
Merged

Fix dev container: chmod 700 PGDATA before initdb#406
bmbouter merged 1 commit intomainfrom
fix-dev-container-pgdata-perms

Conversation

@bmbouter
Copy link
Copy Markdown
Owner

initdb requires 0700 on data dir. Entrypoint sets it before init.

PostgreSQL's initdb requires the data directory to be mode 0700.
The Containerfile sets it to 777 for OpenShift UID compatibility,
but initdb refuses to run on a world-writable directory. The
entrypoint now sets 700 before initdb runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bmbouter bmbouter merged commit 9375957 into main Apr 22, 2026
@bmbouter bmbouter deleted the fix-dev-container-pgdata-perms branch April 22, 2026 18:54
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