-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
[Bug]: File permissions with custom PostgreSQL image #2404
Comments
Can you try this with Here is a reference where the 0400 are used - https://access.redhat.com/documentation/fr-fr/red_hat_enterprise_linux/9/html/configuring_and_using_database_servers/proc_configuring-tls-encryption-on-a-postgresql-server_using-postgresql |
I managed to solve this tbh @bearrito , but in a nasty way: This is running in a custom entry point for postgresql.
I tried also |
Is the image https://www.postgresql.org/docs/16/ssl-tcp.html
It seems like what needs to happen is that |
I think that is indeed the case. The image is not public, but the idea is the following: This is the custom docker file
And then the entry point:
Just to re-iterate, this is not the official pg image workflow of course as we modified the entry point, but this is the scenario we were struggling with @bearrito hope this helps. |
Awesome if merged will try out again @bearrito ! |
@konsalex I think that PR is now up to the maintainers. |
Sorry for the radio silence, nothing related to the PR, just focusing in other tasks, summer PTOs and conferences. I apologise for it if caused troubles. I'm jumping on that PR now for review, and found this comment pending response. Could anybody take a look? 🙏 |
Testcontainers version
v0.29.1
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
Arm
Go version
1.21.8
Docker version
Client: Cloud integration: v1.0.35+desktop.11 Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:13:26 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.28.0 (139021) Engine: Version: 25.0.3 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: f417435 Built: Tue Feb 6 21:14:22 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
There is a miss match between running
testcontainer
anddocker run
when I mount files and cannot seem to figure out what is the reason.Example testcontainer code:
I tested with various file modes also like
0o600
,0o444
0o440
but no luck.The errors I get are either this:
or that:
The docker run command seems to work fine:
Relevant log output
FATAL: could not load server certificate file "/var/lib/postgresql/server.crt": SSL error code 2147483661
Additional information
No response
The text was updated successfully, but these errors were encountered: