1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-17 13:02:40 +03:00
Commit Graph

92 Commits

Author SHA1 Message Date
Docker Library Bot
7de0b51da5 Update 14 to 14.20, trixie 14.20-1.pgdg13+1, bookworm 14.20-1.pgdg12+1 2025-11-13 11:20:42 -08:00
Tianon Gravi
5ec8931249 Remove intentionally-breaking "data" symlink and add better detection
This allows for a more graceful error message for the case of users who need to update their volume path.

I tested this with 17 and `--env PGDATA=/var/lib/postgresql/17/docker` (to make sure it still works fine and doesn't complain about the extra volume provided by Docker/`VOLUME`) and 18 with `-v /var/lib/postgresql/data` (where it appropriately errors and explains to me what I should be doing instead).

I also did a reflow on some text in the error message that's designed to fit in 80 columns but was taking 81. 😂
2025-10-15 11:23:03 -07:00
Tianon Gravi
2c751341b6 Add liburing support to 18+
This is a bit complicated to use in Docker (because `io_uring` has a long and storied security story), but it is a new feature of 18+ that we should probably explicitly support for users who want to jump through the hoops to use it despite the security risk.

Additionally, this re-alphabetizes our `--with-xxx` flags.
2025-09-30 11:58:13 -07:00
Tianon Gravi
a2433755c7 Update gosu to 1.19 2025-09-23 12:31:05 -07:00
Tianon Gravi
a3b3bfabd3 Update gosu to 1.18 2025-09-08 13:04:25 -07:00
Peter A. Jonsson
abab72cc73 debian: align postgres repo url with docs
The PostgreSQL documentation for packages
(https://www.postgresql.org/download/linux/ubuntu/)
does not have a trailing slash.
2025-09-03 23:48:27 +02:00
Docker Library Bot
836ebeb884 Update 14 to 14.19, trixie 14.19-1.pgdg13+1, bookworm 14.19-1.pgdg12+1 2025-08-14 09:25:20 -07:00
Tianon Gravi
176bc3c3f0 Add Debian Trixie (remove Bullseye)
Also, update `versions.json` sorting to be saner/stabler.
2025-08-08 10:41:29 -07:00
Tianon Gravi
2c6fe8daca Add logic to error out on detection of "old databases" 2025-06-06 11:27:47 -07:00
Tianon Gravi
172d9e7dbc Add Alpine 3.22 (remove Alpine 3.20) 2025-05-30 14:09:41 -07:00
Joseph Ferguson
d9c4773ca5 Update apt build depend 2025-05-21 17:48:07 -07:00
Tianon Gravi
b23470265c Remove explicit config.guess/config.sub updates
When we added these lines, we needed newer files than PostgreSQL had upstream, but the situation has changed and we were pinned to a specific commit from 2017 - the _oldest_ PostgreSQL release version has a file from 2020.
2025-05-08 11:32:48 -07:00
Tianon Gravi
266748257c Update to 17.5, 16.9, 15.13, 14.18, 13.21 2025-05-08 10:29:08 -07:00
Paul Liétar
cc254e85ed Unset NOTIFY_SOCKET when running the temporary server. (#1325)
* Unset NOTIFY_SOCKET when running the temporary server.

Postgres has native support for this notification socket and will write a `READY=1` message once it is ready and accepting connections. Unfortunately, the temporary server used by the `docker-entrypoint.sh` also sends a message on the socket, making it appear as though the container is ready and serving connections when it is not.
2025-02-26 16:53:12 -08:00
Docker Library Bot
dabb1fcefb Update 14 to 14.17, bookworm 14.17-1.pgdg120+1, bullseye 14.17-1.pgdg110+1 2025-02-20 11:16:15 -08:00
Docker Library Bot
4bc3d04127 Update 14 to 14.16, bookworm 14.16-1.pgdg120+1, bullseye 14.16-1.pgdg110+1 2025-02-13 10:17:09 -08:00
Joseph Ferguson
042d8d043f Remove PostgreSQL 12 since it is end of life 2025-02-03 16:55:44 -08:00
Jeremy Schneider
32b6fcdda7 Remove inaccurate references to corruption, remove SEGTERM suggestion… (#1303)
* Remove inaccurate references to corruption, remove SEGTERM suggestion, update information links to current docs. Postgres is carefully designed such that data is not corrupted on crashes or unclean shutdowns - the main tradeoff is that WAL replay is needed on startup. In practice, SIGTERM can cause unexpected long delays to shutdowns - often during maintenance windows - so best not to actively suggest this. The links back to official Postgres documentation seem sufficient.
2025-01-09 09:56:49 -08:00
Joseph Ferguson
17818f21dc In Alpine 3.21 bump llvm version
Fixes #1296
2024-12-05 16:14:30 -08:00
Paolo Barbolini
1075ab7060 Update Alpine to 3.21 2024-12-05 22:12:14 +00:00
Docker Library Bot
c444845833 Update 14 to 14.15, bookworm 14.15-1.pgdg120+1, bullseye 14.15-1.pgdg110+1 2024-11-21 12:09:59 -08:00
Docker Library Bot
9c7abb997a Update 14 to 14.14, bookworm 14.14-1.pgdg120+1, bullseye 14.14-1.pgdg110+1 2024-11-14 11:06:51 -08:00
Docker Library Bot
e324d93eba Update 14 to 14.13, bookworm 14.13-1.pgdg120+1, bullseye 14.13-1.pgdg110+1 2024-08-08 09:52:20 -07:00
Tianon Gravi
a09f1c441f Use install instead of mkdir && chown && chmod 2024-07-08 15:18:09 -07:00
Tianon Gravi
3e9b4eaaeb Replace su-exec with gosu
There's a major issue with `su-exec` whose fix has gone unreleased for 5 years (typos leading to running code as root, the opposite of the purpose of the program).

This also decreases our Debian vs Alpine variance.

Due to user scripts/downstream code potentially using `su-exec`, I have included a compatibility symlink to `su-exec` for all versions less than the 17 pre-release.
2024-06-03 13:57:56 -07:00
Laurent Goderre
3a7be2f321 fixup 2024-05-31 09:43:40 -04:00
Earlopain
930acaf01f Update to alpine 3.20 2024-05-22 22:39:44 +02:00
Docker Library Bot
662dbe5225 Update 14 to 14.12, bookworm 14.12-1.pgdg120+1, bullseye 14.12-1.pgdg110+1 2024-05-09 11:31:12 -07:00
Jamie Finnigan
ab6925051c update to gosu 1.17 2024-02-20 16:46:13 -08:00
Docker Library Bot
901df4c333 Update 14 to bookworm 14.11-1.pgdg120+2, bullseye 14.11-1.pgdg110+2 2024-02-12 11:09:00 -08:00
Docker Library Bot
3b6cb599da Update 14 to 14.11, bookworm 14.11-1.pgdg120+1, bullseye 14.11-1.pgdg110+1 2024-02-08 11:28:15 -08:00
Tianon Gravi
d416768b1a Add less to Debian variants
https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
(if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
2024-01-04 13:52:40 -08:00
Tianon Gravi
ce5bf6e7eb Merge pull request #1166 from infosiftr/unlimited-passwords
Only print password length warning for 12 and 13
2023-12-21 16:27:15 -08:00
yosifkit
31aed10dbe Merge pull request #1150 from infosiftr/docker-ensure-initdb
Add new "docker-ensure-initdb.sh" script
2023-12-13 14:17:08 -08:00
Tianon Gravi
7dece99f91 Only print password length warning for 12 and 13
In 14+, the arbitrary length limitations have been removed from the PostgreSQL server (67a472d71c).
2023-12-11 11:39:54 -08:00
Laurent Goderre
1d4651c6c9 Revert "Added inline SBOM for binaries downloaded outside package manager"
This reverts commit 6f4ae83640.
2023-12-11 14:03:58 -05:00
Tianon Gravi
c86568af4a Add new "docker-ensure-initdb.sh" script
This mimics the behavior of `docker-entrypoint.sh` before it starts the PostgreSQL server.

It has three main goals/uses:

  1. (most importantly) as an example of how to use "docker-entrypoint.sh" to extend/reuse the initialization behavior

  2. ("docker-ensure-initdb.sh") as a Kubernetes "init container" to ensure the provided database directory is initialized; see also "startup probes" for an alternative solution
       (no-op if database is already initialized)

  3. ("docker-enforce-initdb.sh") as part of CI to ensure the database is fully initialized before use
       (error if database is already initialized)
2023-12-11 10:58:54 -08:00
Earlopain
25f6ba56f9 Add alpine 3.19 2023-12-08 12:47:00 +01:00
Lukas Fittl
a42b684558 Debian packages: Add explicit check for locale-gen creating locales
In case Debian changes the logic of how locale-gen works, this will flag
it early during the build process.
2023-12-07 14:39:53 -08:00
Lukas Fittl
55e45ba6bb Debian images: Use locale-gen instead of localdef
The use of manually calling localdef caused any future update to the
locales package to remove the manually installed locales, since
locale-gen takes precendence. This would usually be encountered when
a downstream Dockerfile added additional packages, and as a side effect
caused an upgrade to the locales package.

Fix by relying on the /etc/locale.gen file, which is the official place
to specify which locales should be installed.

Fixes #1112
2023-12-07 13:17:35 -08:00
Tianon Gravi
2468c9d91a Update permissions from 777 to 1777 (redux)
I somehow missed Debian in 25b3034e9b (only updated Alpine), so this updates Debian in the same way.

> This still supports the "arbitrary user" use case but with slightly tighter permissions on the end result.
>
> This one is a little bit more "special" other images (due to the existing runtime/entrypoint modification of the directory modes) so I've tried to pick reasonable values for both halves.
2023-11-29 16:11:07 -08:00
Docker Library Bot
d7660ac1e7 Update 14 to 14.10, bookworm 14.10-1.pgdg120+1, bullseye 14.10-1.pgdg110+1 2023-11-09 11:39:00 -08:00
Laurent Goderre
6f4ae83640 Added inline SBOM for binaries downloaded outside package manager 2023-10-04 10:54:45 -04:00
Docker Library Bot
05f691067b Update 14 to 14.9, bookworm 14.9-1.pgdg120+1, bullseye 14.9-1.pgdg110+1 2023-08-10 11:35:14 -07:00
Joseph Ferguson
3fda89cc5c Add Debian bookworm variant 2023-06-13 14:17:18 -07:00
Tianon Gravi
5ea98fe00b Add support for multiple (up to two) concurrent Alpine versions 2023-05-17 15:58:36 -07:00
Tianon Gravi
fbc438936d Add --enable-option-checking=fatal to configure flags
Also, remove deprecated/removed `--with-krb5` (deprecated in 8.3, removed in 9.4; 98de86e422).
2023-05-12 16:51:33 -07:00
Joseph Ferguson
a3b0bb68fa Downgrade llvm to 15 to fix jit support 2023-05-12 15:21:44 -07:00
Docker Library Bot
8ff11cd5ae Update 14 to 14.8, bullseye 14.8-1.pgdg110+1 2023-05-11 11:18:26 -07:00
J0WI
6efe206eaa Alpine 3.18 2023-05-10 19:56:30 +02:00