Commit Graph

80 Commits

Author SHA1 Message Date
Tianon Gravi 3f585c58df Utilize "initdb" functionality better to allow "POSTGRES_INITDB_ARGS=--auth-local=md5"
This also closes a slight bug we've had previously where the "postgres" user is _always_ created (now we only create the user specified via the environment variables).
2018-09-06 13:49:43 -07:00
Tianon Gravi 36294f464a Update psql invocations to properly escape user input!
See also:

- https://stackoverflow.com/a/18683163/433558
- https://www.postgresql.org/docs/9.3/static/app-psql.html#APP-PSQL-VARIABLES
- https://www.postgresql.org/docs/9.3/static/app-psql.html#APP-PSQL-INTERPOLATION
2018-08-24 11:22:17 -07:00
Tianon Gravi 064113e0e4 Add "stretch-backports" to 11+ for clang-6.0
(also, remove *.pyc files for size)
2018-08-21 14:39:06 -07:00
Tianon Gravi 726128b358 Fix Debian "postgres" user HOME (to match Debian package)
See 997d842ee7/debian/postgresql-common.postinst (L32-35) for the bit of the upstream Debian package which sets this.
2018-08-17 13:00:10 -07:00
Docker Library Bot 5673b8988b Update to 9.6.10 2018-08-09 18:02:16 +00:00
Docker Library Bot fd76b238a5 Update to 9.6.10-1.pgdg90+1 2018-08-09 18:02:16 +00:00
Tianon Gravi 635fd0bcb3 Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues 2018-07-25 12:34:27 -07:00
Michael Käufl 34689e2a5b Apply changes from running ./update.sh 2018-07-09 16:35:20 +02:00
Tianon Gravi eff90effc6 Allow "initdb.d" scripts to be executed instead of sourced 2018-05-30 11:00:02 -07:00
Tianon Gravi fe89a60c9b Implement "nss_wrapper" for Debian variants 2018-05-24 11:39:50 -07:00
Docker Library Bot 46bc23cd0d Update to 9.6.9-2.pgdg90+1 2018-05-21 12:02:11 +00:00
Docker Library Bot a06a937743 Update to 9.6.9 2018-05-10 16:58:08 +00:00
Docker Library Bot c4cb816b3d Update to 9.6.9-1.pgdg90+1 2018-05-10 16:58:08 +00:00
Codruț Constantin Gușoi 6fe8c15843 Listen only on the unix socket during init
Healthchecks that used `pg_isready -p 5432` were incorrectly flagging
the container as being healthy during initialization phase since
healthchecks are being run inside the container itself, so
`listen_addresses='localhost'` was not enough. Setting
`listen_addresses=''` forces the server to only listen on the unix
socket so no ports are open that might incorrectly interfeer with the
healthchecks.
2018-05-04 10:38:07 +01:00
Tianon Gravi 5876d4b88a
Merge pull request #437 from infosiftr/stretch-slim
Update to Debian Stretch (slim)
2018-04-23 16:16:36 -07:00
Tianon Gravi ef4545c07b Update to Debian Stretch (slim) 2018-04-23 15:16:30 -07:00
Tianon Gravi c66fc738ed Update to Alpine 3.7 2018-04-23 15:06:17 -07:00
Docker Library Bot 65ed6d7dee Update to 9.6.8 2018-03-01 20:44:39 +00:00
Docker Library Bot 7f18547f37 Update to 9.6.8-1.pgdg80+1 2018-03-01 20:44:39 +00:00
Docker Library Bot 165ffaab64 Update to 9.6.7 2018-02-08 17:46:51 +00:00
Docker Library Bot 7da010d820 Update to 9.6.7-1.pgdg80+1 2018-02-08 17:46:51 +00:00
Docker Library Bot 3d152d1a0d Update to 9.6.6 2017-11-09 19:02:16 +00:00
Docker Library Bot 82e8101ff6 Update to 9.6.6-1.pgdg80+1 2017-11-09 19:02:16 +00:00
Tianon Gravi 3b022607be Swap from "gnupg2" to "gnupg"
See https://github.com/docker-library/python/issues/236 for details.
2017-11-01 13:53:25 -07:00
Tianon Gravi f7dc5727b1 Fix PATH, especially for cyrillic characters in psql 2017-10-11 13:24:03 -07:00
Docker Library Bot b7cb3c6eac Update to 9.6.5-1.pgdg80+2 2017-10-06 00:02:14 +00:00
Joe Ferguson 1089a8971b Adjust scanelf to properly detect runDeps 2017-09-22 14:19:38 -07:00
yosifkit bef8f02d1f Merge pull request #330 from infosiftr/multiarch
Use "apt-get source --compile" to build for Debian architectures upstream doesn't
2017-08-31 10:17:25 -07:00
Docker Library Bot d1725ffa8b Update to 9.6.5 2017-08-31 14:19:05 +00:00
Docker Library Bot c6d76847c0 Update to 9.6.5-1.pgdg80+1 2017-08-31 14:19:05 +00:00
Tianon Gravi cd3f3b1c48 Use "apt-get source --compile" to build for Debian architectures upstream doesn't 2017-08-30 21:57:04 -07:00
Docker Library Bot 58ed93931d Update to 9.6.4 2017-08-10 18:03:22 +00:00
Docker Library Bot bef7a7e026 Update to 9.6.4-1.pgdg80+1 2017-08-10 18:03:21 +00:00
Tianon Gravi 2f0f505894 Apply update.sh 2017-07-27 16:54:40 -07:00
Tianon Gravi f3146f857b Update to 10beta2
This adds perl-ipc-run to Alpine since 10's configure script now requires it.
2017-07-14 09:43:00 -07:00
Joe Ferguson 972294a377 Fix failure to remove non-existent gpg files 2017-06-22 10:25:36 -07:00
Joe Ferguson d8abce4e82 Add gpg when necessary, ensure `prove` exists 2017-06-21 17:01:35 -07:00
Tianon Gravi 2b0f642834 Update "git.savannah.gnu.org" URLs 2017-06-05 09:51:54 -07:00
Tianon Gravi 54053ad27a Adjust "/var/run/postgresql" permissions for arbitrary-user support 2017-05-19 10:46:58 -07:00
Docker Library Bot e7222bf985 Update to 9.6.3-1.pgdg80+1 2017-05-11 11:02:24 -07:00
Docker Library Bot a554d043a3 Update to 9.6.3 2017-05-11 11:02:24 -07:00
Tianon Gravi 975f6a2705 Explicitly update "config.guess" and "config.sub" (and update "ossp-uuid" code) 2017-05-10 10:54:54 -07:00
Tianon Gravi bc44222ff8 Add explicit "--build" to our "./configure" invocations 2017-05-10 10:19:28 -07:00
Tianon Gravi ee20f10a40 Add "mkdir ~postgres" with proper permissions 2017-04-25 14:59:57 -07:00
Pahaz Blinov 3d4e5e9f64 Simplify docker-entrypoint.sh append line 2017-04-06 14:32:45 -07:00
Tianon Gravi 123aedc09b Merge pull request #224 from DanielDent/master
POSTGRES_XLOG_DIR to specify transaction log dir
2017-03-20 10:10:03 -07:00
Tianon Gravi 913bc48bfd Update order to match other blocks and move "--xlogdir" handling down to where it'll be invoked regardless of our "root" status 2017-03-20 09:54:06 -07:00
Tianon Gravi 439c4976af Minor whitespace and consistency changes 2017-03-06 14:45:24 -08:00
Daniel Dent 89530f6020 POSTGRES_INITDB_XLOGDIR to specify xlog log dir
Adds support for the POSTGRES_INITDB_XLOGDIR environment variable, which specifies where the postgres transaction log is stored.

For some use cases, being able to place the transaction log on a different volume is useful.

Existing support for providing flags via $POSTGRES_INITDB_ARGS is inadequate because of the need to create and chown/chmod the directory prior to running initdb.
2017-02-28 14:05:26 -08:00
Docker Library Bot dd88d2f02a Update to 9.6.2 2017-02-09 11:02:21 -08:00