Skip to content

Conversation

@mnagy
Copy link
Contributor

@mnagy mnagy commented Mar 24, 2015

This is analogous to sclorg/mysql-container#25
I only found two settings in v2 PostgreSQL.

mnagy added 2 commits March 24, 2015 13:42
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.
@mnagy
Copy link
Contributor Author

mnagy commented Mar 25, 2015

[test]

@mfojtik
Copy link
Contributor

mfojtik commented Mar 25, 2015

LGTM

@mnagy mnagy force-pushed the config_customization branch from 7627361 to 721df10 Compare March 25, 2015 13:10
@mnagy
Copy link
Contributor Author

mnagy commented Mar 25, 2015

Moved configuration into it's own contrib file as per @mfojtik's offline comments. PTAL

mnagy added 2 commits March 25, 2015 14:50
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
@mnagy mnagy force-pushed the config_customization branch from 721df10 to 8c27b59 Compare March 25, 2015 13:50
@mnagy
Copy link
Contributor Author

mnagy commented Mar 25, 2015

..and added forgotten documentation to readme..

@mnagy
Copy link
Contributor Author

mnagy commented Mar 26, 2015

@mfojtik can you PTAL?

Copy link
Contributor

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.

@mfojtik
Copy link
Contributor

mfojtik commented Mar 26, 2015

@mnagy one small nit, but my LGTM is still valid ;-)

mfojtik pushed a commit that referenced this pull request Mar 26, 2015
@mfojtik mfojtik merged commit 230e98f into sclorg:master Mar 26, 2015
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 this pull request may close these issues.

2 participants