Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle default umask 077 on app/scripts/init-db directory in startup and docs #174

Open
arrrgi opened this issue Jul 16, 2024 · 0 comments

Comments

@arrrgi
Copy link

arrrgi commented Jul 16, 2024

Describe your issue

My environment consists of a local development workstation and a Docker host that has had some hardening applied.

By default, new files and directories are created following the UMASK 077 directive in the /etc/login.defs file.

Without updating permissions on the app/scripts/init-db directory, docker compose fails to start the container stack. The resulting error is thrown by the plandex-postgres container:

plandex-postgres-1  | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied

Expected result

The start_local.sh script should check and prompt/force update permissions to the init-db directory, otherwise, reflect this necessary requirement appropriately in documentation for others who run into the same permissions issue.

Workarounds

A simple chmod -R 0755 init-db was sufficient enough to allow docker compose to bring up the Postgres container.

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

No branches or pull requests

1 participant