26 Commits

Author SHA1 Message Date
Sameer Naik d92102d951 added DEBUG option to enable bash debugging 2015-11-28 21:19:42 +05:30
Sameer Naik a1ca18b780 recovery.conf can exist only on a slave node
It's existence otherwise cause issues while replication users, as such
the `configure_recovery` function is promoted higher in the
initialization sequence.
2015-11-28 21:18:16 +05:30
Sameer Naik 22c969c88c removed launch sequence from functions import 2015-11-28 14:51:18 +05:30
Sameer Naik faaa87cc64 separated out entrypoint.sh functions to a functions bash module 2015-11-26 21:04:17 +05:30
Sameer Naik 6418c9e044 added PG_SSL parameter to enable/disable SSL support
`PG_SSL` is automatically set to `on` if `server.crt` and `server.key`
can be found at `/etc/postgresql/certs`

Closes #32
2015-11-26 21:03:51 +05:30
Sameer Naik 5f6024062f defined /etc/postgresql/certs as the mountpoint to install SSL key and certificate 2015-11-26 21:03:51 +05:30
Sameer Naik 7eeda81f1e set default value of REPLICATION_SSLMODE to prefer 2015-11-26 21:03:51 +05:30
Sameer Naik 761ec9645c PSQL_SSLMODE config parameter renamed to REPLICATION_SSLMODE 2015-11-26 21:03:51 +05:30
Sameer Naik b6f0cba6a7 PSQL_MODE config parameter renamed to REPLICATION_MODE 2015-11-26 21:03:51 +05:30
Sameer Naik de5295ffa7 PSQL_TRUST_LOCALNET config parameter renamed to PG_TRUST_LOCALNET 2015-11-26 21:03:51 +05:30
Sameer Naik c8e9dec549 complete rewrite of existing feature set
Closes #40
2015-11-26 21:03:49 +05:30
Sameer Naik a68b58aefe fix: set ssl config to off or on 2015-11-23 22:25:23 +05:30
Sameer Naik f3b18c1f1b avoid duplicate entries in configuration files. Refer #40 2015-11-23 20:46:11 +05:30
Sameer Naik b5dd975ad1 removed redundant chown of PG_CONFDIR 2015-11-15 13:02:50 +05:30
Sameer Naik 693995dd2b set PG_CONFDIR to ${PG_HOME}/${PG_VERSION}/main
Database initialization and migration tasks need to be done before
performing any configuration bits
2015-11-15 13:02:10 +05:30
Sameer Naik 7601996544 hub.docker.com now builds images from git tags. 2015-11-07 12:45:15 +05:30
Sameer Naik a443dfb2d9 Merge branch 'master' of https://github.com/sdusart/docker-postgresql into sdusart-master 2015-10-17 15:29:17 +05:30
Sameer Naik eedfc6a1c9 set DEBIAN_FRONTEND=noninteractive env setting apt-get install lines 2015-10-10 23:05:12 +05:30
Sylvain Dusart 57f7f6597c Add an option to set the locale used for database creation
Using the DB_LOCALE environment variable (set by default to C), it is now
possible to set the --locale argument that is given to the initdb command.
This enables customization of LC_COLLATE and LC_TYPE for the databases.
2015-10-03 23:49:28 +02:00
Sylvain Dusart fbc06c1604 Protect usernames and database names in "CREATE ROLE", "CREATE DATABASE" and "GRANT ALL" requests
This enables to use "-" in for usernames or database names (eg myApp-client1).
2015-10-03 21:09:39 +02:00
Sameer Naik 9ca966eb1f entrypoint.sh: chown recursively 2015-08-16 12:47:44 +05:30
Sameer Naik da0fb3dc36 entrypoint.sh: moved user mapping code to a function 2015-08-16 12:28:38 +05:30
Sameer Naik 306f915aaf entrypoint.sh: create log dir 2015-08-16 12:25:39 +05:30
Sameer Naik fd3794fa03 entrypoint.sh: moved data and run directiory creation into functions 2015-08-16 12:25:32 +05:30
Sameer Naik 3c5e076101 Dockerfile: added PG_RUNDIR variable 2015-08-16 12:12:30 +05:30
Sameer Naik 17c826882a renamed start script to entrypoint.sh 2015-08-16 11:38:25 +05:30