Commit Graph

140 Commits

Author SHA1 Message Date
yosifkit 03e769531f
Merge pull request #801 from infosiftr/db-exists
Do not try to create databases that already exist
2020-12-28 14:39:40 -08:00
Tianon Gravi 36ffea2cb2 Adjust "chmod" to not fail (since PostgreSQL validates this itself later) 2020-12-28 09:51:28 -08:00
Tianon Gravi 11e397d86c Do not try to create databases that already exist
We were already checking for whether `POSTGRES_DB` was set to `postgres`, but this was the underlying motivation for that check (and it turns out that this applies for values of at least `template0` and `template1` as well).
2020-12-22 14:00:05 -08:00
Docker Library Bot 38841304dd Update to 11.10-1.pgdg90+1 2020-11-13 01:02:16 +00:00
Docker Library Bot 1dcdff4b41 Update to 11.10 2020-11-13 01:02:16 +00:00
Bohdan Kmit 04bf35f0c4 Keep postgres static libraries in Alpine images
Do not remove static postgres libraries from Alpine based images.
This add near 1.4MB to image size, but allow to complie some extentions
like repmgr without errors
2020-09-25 21:58:45 +03:00
Daniel Huhn bfc5d81c8f Change default STOPSIGNAL from SIGTERM to SIGINT 2020-09-18 12:03:49 -07:00
xpetit fdf884a12f
Fix typo 2020-09-06 18:17:09 +02:00
Docker Library Bot 1858993247 Update to 11.9-1.pgdg90+1 2020-08-14 12:02:12 +00:00
Docker Library Bot a5a072f08a Update to 11.9 2020-08-14 12:02:12 +00:00
Tianon Gravi 1bddd08358 Replace "&&" chains with ";" in Alpine variants 2020-06-25 14:10:42 -07:00
Tianon Gravi 1d140375b6 Remove (no longer necessary) Alpine fetch-deps 2020-06-25 08:27:27 -07:00
J0WI b1f60bd4f8 Upgrade Alpine to 3.12 2020-06-11 00:19:04 +02:00
Docker Library Bot aa4f329a17 Update to 11.8-1.pgdg90+1 2020-05-14 20:11:25 +00:00
Docker Library Bot 0de8bbbcdc Update to 11.8 2020-05-14 20:11:25 +00:00
Tianon Gravi a1420dac64 Update to gosu 1.12 2020-04-16 00:30:52 -07:00
Tianon Gravi 17c71aef19 Update architecture detection to be more thorough 2020-03-30 15:18:07 -07:00
Tianon Gravi 33bccfcadd Fix silently skipped init scripts 2020-02-28 16:01:52 -08:00
yosifkit 0a0f6444f5
Merge pull request #684 from hakandilek/master
Remove unnecessary packages from the image
2020-02-25 16:57:35 -08:00
Docker Library Bot 06cc08b44b Update to 11.7-2.pgdg90+1 2020-02-24 19:02:14 +00:00
Hakan Dilek 72d7408ad3 Do not install recommended dependencies
This results in a ~80MB image size reduction.
2020-02-21 16:14:34 -08:00
Joe Ferguson 4f70bf2b81 Add .sql.xz support to docker-entrypoint-initdb.d
xzcat is provided by busybox in alpine
2020-02-17 15:38:43 -08:00
Tianon Gravi f1bc8782e7 Clarify that "POSTGRES_PASSWORD" should be non-empty
(Assuming "POSTGRES_HOST_AUTH_METHOD" is not set to the "trust" value which does not require passwords.)
2020-02-17 12:56:07 -08:00
yosifkit 6d1f671dcd
Merge pull request #669 from yaroze/master
Change default shell for user postgres to sh
2020-02-14 13:47:34 -08:00
Docker Library Bot 505eda1291 Update to 11.7-1.pgdg90+1 2020-02-14 07:02:14 +00:00
Docker Library Bot d3908b054d Update to 11.7 2020-02-14 07:02:14 +00:00
Joe Ferguson f0edc5c30e Run update.sh to apply shell to all alpine versions 2020-02-13 17:26:53 -08:00
yosifkit 16dd8dbf87
Merge pull request #658 from infosiftr/more-mysql
Error when `POSTGRES_PASSWORD` is unset like mysql
2020-02-12 15:47:15 -08:00
Joe Ferguson 46161d6ab3 Add missing -n's to bash test 2020-01-09 16:19:13 -08:00
Joe Ferguson 42ce7437ee Error when POSTGRES_PASSWORD is unset like mysql
Add POSTGRES_HOST_AUTH_METHOD to bring back old behavior and be similar to MYSQL_ALLOW_EMPTY_PASSWORD, but add warning when "trust" is used since it disables all passwords
2020-01-09 16:19:02 -08:00
J0WI c4b019526a Add home dir 2020-01-01 01:31:50 +01:00
J0WI 52814abac4 Bump LLVM to 9 2019-12-23 19:34:41 +01:00
J0WI ada31ea8dc Add postgres directory and user 2019-12-23 02:21:09 +01:00
J0WI 1cbd3a1666 Upgrade to Alpine 3.11 2019-12-20 04:05:38 +01:00
Tianon Gravi 0d0485cb02
Merge pull request #647 from infosiftr/help
Check for "help" to short circuit server starting (since they break when passed to pg_ctl)
2019-12-03 09:43:18 -08:00
Joe Ferguson de2aa0bf56 Check for "help" to short circuit server starting (since they break when passed to pg_ctl) 2019-12-02 19:05:53 -08:00
Tianon Gravi 89a2fb84e6 Update temporary server to prefer PGPORT if set (since the client and server both normally respect that variable) 2019-12-02 18:07:23 -08:00
Tianon Gravi c8bf23b75f Add JIT support for Alpine on 11+ 2019-11-27 14:55:25 -08:00
Tianon Gravi 34df4665bf Apply update.sh 2019-11-26 15:54:46 -08:00
Tianon Gravi 820323fa89 Adjust "docker_temp_server_start" to override port for consistent unix socket path 2019-11-25 17:15:02 -08:00
Docker Library Bot 6dfdc0eacb Update to 11.6 2019-11-15 13:02:11 +00:00
Docker Library Bot 2addeda08b Update to 11.6-1.pgdg90+1 2019-11-15 13:02:11 +00:00
Joe Ferguson 8fada98158 Fixes from tianon's review 2019-11-12 16:00:40 -08:00
Joe Ferguson 7c84645f2d Apply update.sh for new entrypoint 2019-10-11 13:18:19 -07:00
Docker Library Bot f19a74ec30 Update to 11.5-3.pgdg90+1 2019-10-03 18:03:23 +00:00
Docker Library Bot 0a66d53ffa Update to 11.5 2019-08-08 18:02:19 +00:00
Docker Library Bot 9d8e244843 Update to 11.5-1.pgdg90+1 2019-08-08 18:02:19 +00:00
Tianon Gravi 87b15b6c65 Use explicit "hkps" for keys.openpgp.org 2019-07-03 07:48:26 -07:00
Tianon Gravi faf08dbfd0 Switch from ha.pool.sks-keyservers.net to keys.openpgp.org for fetching Tianon's PGP key 2019-07-02 15:09:19 -07:00
yosifkit ba24350aa0
Merge pull request #590 from J0WI/alpine10
Upgrade Alpine to 3.10
2019-06-21 13:39:48 -07:00
Docker Library Bot 246f8d41d6 Update to 11.4-1.pgdg90+1 2019-06-21 06:02:19 +00:00
Docker Library Bot 06813e04bd Update to 11.4 2019-06-21 06:02:19 +00:00
J0WI f8e61ad42f Upgrade Alpine to 3.10 2019-06-20 15:02:51 +02:00
Tianon Gravi 5992d8be75 Update "Dockerfile-alpine.template" and apply "update.sh" (after verifying that 12 still builds and works properly without the added "-testing" repository) 2019-05-30 13:17:17 -07:00
Docker Library Bot ad464b0375 Update to 11.3 2019-05-09 18:02:11 +00:00
Docker Library Bot cf9b6cdd64 Update to 11.3-1.pgdg90+1 2019-05-09 18:02:11 +00:00
Joe Ferguson 85aadc08c3 Move end of line comment to its own line to improve readability 2019-04-22 16:47:26 -07:00
Docker Library Bot 7e80419825 Update to 11.2-1.pgdg90+1 2019-02-14 19:04:58 +00:00
Docker Library Bot 6c3b27f143 Update to 11.2 2019-02-14 19:04:58 +00:00
J0WI cfac232e3c Update to Alpine 3.9 2019-01-31 14:43:28 +01:00
Docker Library Bot 42f9ab3bab Update to 11.1-3.pgdg90+1 2019-01-28 19:02:19 +00:00
Tianon Gravi 45b855af13 Warn on POSTGRES_PASSWORD of 100+ characters 2019-01-08 16:48:03 -08:00
Angus McInnes f8bfec9c70 Bump gosu version
Closes https://github.com/docker-library/postgres/issues/539
2018-12-28 15:49:10 +11:00
Tianon Gravi 040949af15 Use "dpkg-divert" on our sample configuration file (instead of just replacing it)
This should stop our changes from getting overwritten when folks do weird things like upgrade PostgreSQL inside the image (which isn't a good idea, but this change is still more correct anyhow).
2018-11-20 15:33:22 -08:00
Tianon Gravi d61fd19b69 Update "gpg" invocations to use "--batch"
See https://bugs.debian.org/913614
2018-11-14 12:22:21 -08:00
Docker Library Bot 112bf5ee84 Update to 11.1 2018-11-08 16:43:57 +00:00
Docker Library Bot 2d40c8a89b Update to 11.1-1.pgdg90+1 2018-11-08 16:43:57 +00:00
Docker Library Bot 3402e97310 Update to 11.0 2018-10-18 16:03:52 +00:00
Docker Library Bot 88341a4351 Update to 11.0-1.pgdg90+2 2018-10-18 16:03:52 +00:00
Docker Library Bot eed67ed0f3 Update to 11rc1 2018-10-11 18:02:15 +00:00
Docker Library Bot 4b94743e2e Update to 11~rc1-1.pgdg90+1 2018-10-11 18:02:15 +00:00
Docker Library Bot 1acd5e225a Update to 11~beta4-1.pgdg90+1 2018-09-20 18:02:13 +00:00
Docker Library Bot 25f99f10cb Update to 11beta4 2018-09-20 18:02:13 +00:00
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 9986244c45 Update to 11~beta3-1.pgdg90+2 2018-08-14 00:02:17 +00:00
Docker Library Bot 988d8afbdb Update to 11~beta3-1.pgdg90+1 2018-08-09 18:02:16 +00:00
Docker Library Bot 7ea5efa503 Update to 11beta3 2018-08-09 18:02:16 +00:00
Docker Library Bot 56cf37a42a Update to 11~beta2-2.pgdg90+2 2018-07-28 18:02:13 +00:00
Tianon Gravi 639f83fb14
Merge pull request #470 from dtrebbien/build-with-icu
Build with the ICU collation provider
2018-07-27 13:06:54 -07: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
Daniel Trebbien 6b2d9f0d5d Build with the ICU collation provider
This builds PostgreSQL with the ICU collation provider:
https://www.postgresql.org/docs/10/static/collation.html
2018-07-22 12:16:31 -04:00
Docker Library Bot 5d0b6adfd8 Update to 11~beta2-2.pgdg90+1 2018-07-14 00:02:15 +00:00
Michael Käufl 34689e2a5b Apply changes from running ./update.sh 2018-07-09 16:35:20 +02:00
Docker Library Bot 686aae6553 Update to 11~beta2-1.pgdg90+1 2018-06-28 18:02:13 +00:00
Docker Library Bot eacf33933e Update to 11beta2 2018-06-28 18:02:13 +00:00
Tianon Gravi eff90effc6 Allow "initdb.d" scripts to be executed instead of sourced 2018-05-30 11:00:02 -07:00
Joe Ferguson 927a8525cf Add new 11 series beta 2018-05-25 12:46:44 -07:00