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

10 Commits

Author SHA1 Message Date
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
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
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
Laurent Goderre
6f4ae83640 Added inline SBOM for binaries downloaded outside package manager 2023-10-04 10:54:45 -04:00
Tianon Gravi
5ea98fe00b Add support for multiple (up to two) concurrent Alpine versions 2023-05-17 15:58:36 -07:00
Tianon Gravi
623c00456e Update jq-template for speed improvements 2022-07-13 17:15:18 -07:00
Tianon Gravi
36abfddd6f Remove 9.6 (EOL)
See https://www.postgresql.org/about/news/postgresql-141-135-129-1114-1019-and-9624-released-2349/

> Additionally, this is the final release of PostgreSQL 9.6. If you are running PostgreSQL 9.6 in a production environment, we suggest that you make plans to upgrade.
2022-02-11 17:52:48 -08:00
Tianon Gravi
d50c412c4e Update from Buster to Bullseye 2021-09-09 09:42:25 -07:00
Tianon Gravi
517c64f87e Add initial jq-based templating engine 2021-06-16 10:36:52 -07:00