-
Notifications
You must be signed in to change notification settings - Fork 219
PostgreSQL settings. #4
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
Conversation
We added a `set -u` in previous commit which causes a "unbound variable" failure if some environment variables weren't defined.
This will allow us to run the image easily with just postgres and other parameters, which is generally useful for debugging/testing/experimenting.
|
[test] |
|
LGTM |
7627361 to
721df10
Compare
|
Moved configuration into it's own contrib file as per @mfojtik's offline comments. PTAL |
Separate initdb-generated config and our custom configuration that is recreated on each container restart, according to the provided environment variables, similarly to the MySQL image. Added two settings, both from OpenShift v2 PostgreSQL cartridge: * POSTGRESQL_MAX_CONNECTIONS * POSTGRESQL_SHARED_BUFFERS
721df10 to
8c27b59
Compare
|
..and added forgotten documentation to readme.. |
|
@mfojtik can you PTAL? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls say here that this will be appended to the postgresql.conf, allowing users to modify it as they want.
|
@mnagy one small nit, but my LGTM is still valid ;-) |
This is analogous to sclorg/mysql-container#25
I only found two settings in v2 PostgreSQL.