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

readOnlyRootFilesystem breaks postgres.WithConfigFile #86

Open
aloifolia opened this issue Apr 8, 2024 · 1 comment
Open

readOnlyRootFilesystem breaks postgres.WithConfigFile #86

aloifolia opened this issue Apr 8, 2024 · 1 comment
Labels
question Further information is requested

Comments

@aloifolia
Copy link

When I use the Postgres module of Testcontainers, I can use an initialization script:

postgres.WithConfigFile(filepath.Join("testdata", "my-postgres.conf")),

Usually, this works flawlessly. With kubedock, however, this fails when the pod has a readOnlyRootFilesystem. I guess that a volume could help in this situation but don't know which path the volume should be mounted to.

@joyrex2001
Copy link
Owner

You can also try is starting kubedock with --pre-archive, this will collect all files that are copied before a container is started to a configmap and mount that instead. If that doesn't help, it probably requires some changes at the postgress module implementation (moving the config file to another location).

@joyrex2001 joyrex2001 added the question Further information is requested label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants