-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Description
Now that the postgres-containers project has been permanently decoupled from the official Docker PostgreSQL image and we are building and maintaining our own images, we can leverage them to produce PostGIS-enabled images.
The goal is to support PostGIS until PostgreSQL 17 is phased out (November 2029). Starting with PostgreSQL 18, all supported versions will include the extension_control_path
GUC, allowing PostGIS to be mounted as a separate image volume, making dedicated PostGIS images unnecessary.
Scope
We should build PostGIS images on top of the following base images:
standard
(without Barman Cloud)system
(with Barman Cloud)
Support should follow the upstream PostgreSQL and Debian lifecycle, aligned with the postgres-containers
images.
Proposal
Start with a pilot project to validate feasibility. Reuse everything possible from the postgres-containers
project. If successful, we can extend and promote the solution as the official way to build PostGIS for CloudNativePG, and transition from the current system.
Example
Suppose the last available standard
PostgreSQL 16 image on trixie
is:
postgresql:16.10-202509090953-standard-trixie
We should build the corresponding PostGIS image with the tag:
postgis:16.10-3.5.3-${TS}-standard-trixie
Where ${TS} is the build timestamp of the PostGIS image (which must be later than 202509090953
).
This should also produce the following rolling tags:
postgis:16.10-3.5.3-standard-trixie
postgis:16-3.5-standard-trixie