Commit Graph

35 Commits

Author SHA1 Message Date
Sameer Naik
68a43ce139 moved set_pg_param and set_hba_param helper functions to post-install.sh 2016-01-16 12:15:38 +05:30
Sameer Naik
d6bc1461e3 validate POSTGRES_MODE 2016-01-15 23:39:47 +05:30
Sameer Naik
ff2dda5767 replace used of postgres user string with BITNAMI_APP_USER 2016-01-15 22:58:53 +05:30
Sameer Naik
e3563fa711 minor create_replication_user restructuring 2016-01-15 21:17:13 +05:30
Sameer Naik
a8c74e5542 moved default configurations to post-install.sh
If user does not mount the `conf/` volume and instead only mounts the
`data/` volume, the postgres server would not allow connections from
users when the container is recreated using existing volumes because the
access information (which is created only on the firstrun) is stored in
the `conf/` volume which would be lost on recreation. This is also true
for replication users.

To resolve this we moved the basic default configurations to the
`post-install.sh`, including the `pg_hba.conf` configurations that
allows database and replication users to login using md5 authentication.
2016-01-15 15:13:48 +05:30
Sameer Naik
e055f416da renamed env param POSTGRES_REPLICATION_MODE to POSTGRES_MODE 2016-01-14 13:54:58 +05:30
Sameer Naik
926af3c2e7 Make bitnami/postgresql a drop-in replacement for the official postgres image 2016-01-14 13:53:21 +05:30
Sameer Naik
e1b74021ff removed postgresql.conf configurations from post-install.sh 2016-01-13 14:40:33 +05:30
Sameer Naik
dfb9ad914c removed redundant chown 2016-01-13 14:40:33 +05:30
Sameer Naik
17a5627f76 renamed initialize_replication_parameters to discover_replication_parameters 2016-01-13 14:40:33 +05:30
Sameer Naik
e8520dae73 added configuration helpers 2016-01-13 14:40:33 +05:30
Sameer Naik
7e9a8df0c5 renamed function configure_replication_slave to configure_recovery 2016-01-13 14:40:33 +05:30
Sameer Naik
2c8c779776 avoid duplicate entries in pg_hba.conf 2016-01-13 11:20:03 +05:30
Sameer Naik
7b15bb877c use bash parameter expansion to set default value of POSTGRESQL_USER 2016-01-13 11:20:03 +05:30
Sameer Naik
b7b87a6ebd set POSTGRESQL_REPLICATION_MODE=master by default 2016-01-13 11:20:02 +05:30
Sameer Naik
4cff7b5acb enforce passwords for custom user 2016-01-12 22:09:17 +05:30
Sameer Naik
a0284d0b31 call print_app_credentials irrespective of POSTGRESQL_REPLICATION_MODE 2016-01-12 21:25:41 +05:30
Sameer Naik
a38cd88a63 chown volumes at the very beginning of initialization
chown'ing the `conf/`, `data/` and `logs/` volumes at the begining of
the initialization ensures that no permission issues are encountered
during initialization.
2016-01-12 20:00:44 +05:30
Sameer Naik
319b761df1 updated sed substitutions to be resilient to whilespaces 2016-01-12 12:23:34 +05:30
Sameer Naik
0d475b7b6f Quote user and database parameters in SQL statements
This ensures there are no problems creating user name "user" and also
allows the use of `-` characters in user names and database names.
2015-11-23 12:34:46 +05:30
Sameer Naik
ac606e4a97 simplify sed substitution while configuring replication slave 2015-10-30 14:03:39 +05:30
Sameer Naik
c842be78a6 support reconfiguration of slave as master using a trigger file 2015-10-29 20:01:56 +05:30
Sameer Naik
75446cf3d9 master user and password is not required to set up a slave replication 2015-10-29 12:49:05 +05:30
Sameer Naik
48b96baf22 do not print credentials when configured as as replication slave 2015-10-29 12:49:05 +05:30
Sameer Naik
e5483dce5a take ownership of /conf at every start 2015-10-29 12:49:05 +05:30
Sameer Naik
d75474f195 configure slave connection info at every startup 2015-10-29 12:49:05 +05:30
Sameer Naik
e9afd6a54a add support for streaming replication 2015-10-29 12:49:00 +05:30
Sameer Naik
189a7e92a8 correctly apply ownership to /data and /logs volumes
`chown` does not seem to follow symlinks.
2015-10-27 14:49:06 +05:30
Sameer Naik
b30e1202c7 use the entrypoint.sh script from the base image 2015-10-04 14:33:55 +05:30
Sameer Naik
1570f55638 the base image prints the welcome page by default 2015-10-04 14:33:44 +05:30
Sameer Naik
0612aebc66 replace use of gosu with s6-setuidgid 2015-10-04 14:32:45 +05:30
Sameer Naik
32c3bd6a3e added circuit breaker logic for frequent and repeated failures 2015-10-04 14:32:45 +05:30
Sameer Naik
0b6a75cb52 do not start postgres and logging services if user specifies a command 2015-10-04 14:32:45 +05:30
Sameer Naik
9f99f0a37a configure postgresql as a s6 service 2015-10-04 14:32:40 +05:30
Sameer Naik
29f5f59b3f created rootfs/ directory structure 2015-10-01 20:59:25 +05:30