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

Fix folder creation in Kubernetes #423

Open
NyakudyaA opened this issue Apr 20, 2023 · 1 comment
Open

Fix folder creation in Kubernetes #423

NyakudyaA opened this issue Apr 20, 2023 · 1 comment

Comments

@NyakudyaA
Copy link
Collaborator

What is the bug or the crash?

When running in Kubernetes in non-root mode the container cannot create the folders specified in https://github.com/kartoza/docker-postgis/blob/develop/scripts/setup-conf.sh

create_dir ${EXTRA_CONF_DIR}
create_dir ${CONF_LOCKFILE_DIR}
create_dir ${SCRIPTS_LOCKFILE_DIR}

In order to run it currently you need to mound these folders as volumes. We need to define a way to create these folders by default

A possible solutions to this include

Steps to reproduce the issue

Run the container in kubernetes using the env RUN_AS_ROOT=False

Versions

kartoza/postgis:15-3.3

Additional context

No response

@NyakudyaA
Copy link
Collaborator Author

cc @tharanathkartoza

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 a pull request may close this issue.

1 participant