Skip to content

Conversation

@NiccoloFei
Copy link
Contributor

@NiccoloFei NiccoloFei commented Nov 7, 2025

PostGIS container image:

  • Added a dedicated PostGIS extension image.
  • Automatically derives required OS dependencies by diffing the base minimal image against the additional libraries installed by PostGIS.
  • Added PostGIS-specific Chainsaw tests to validate that all PostGIS-related extensions can be successfully installed.

Additional improvements:

  • Enabled manual dispatch of builds for a specific extension target.
  • Removed update.yml in favour of Renovate’s Deb datasource for retrieving PGDG packages.
  • Converted boilerplate files from JSON to HCL to support Renovate comments and provide better customisation of the default Bake target.
  • Added support for specifying a custom name for the target container image, allowing it to differ from the extension’s name.
  • Adapted pgvector to above changes.
  • Created BUILD.md with detailed instructions.
  • Created a Makefile for a controlled local image building experience.

Closes #4

@NiccoloFei NiccoloFei force-pushed the dev/4 branch 6 times, most recently from 70af938 to a6381bb Compare November 7, 2025 16:41
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@NiccoloFei NiccoloFei force-pushed the dev/4 branch 3 times, most recently from 8434d8e to c58a327 Compare November 7, 2025 17:31
Signed-off-by: Niccolò Fei <[email protected]>
@NiccoloFei NiccoloFei force-pushed the dev/4 branch 3 times, most recently from e1acb3c to 85c3143 Compare November 11, 2025 13:01
Signed-off-by: Niccolò Fei <[email protected]>
@NiccoloFei NiccoloFei force-pushed the dev/4 branch 4 times, most recently from bcfdbbb to 202c639 Compare November 20, 2025 16:45
Signed-off-by: Niccolò Fei <[email protected]>
@NiccoloFei NiccoloFei marked this pull request as ready for review November 20, 2025 17:00
@NiccoloFei NiccoloFei requested a review from a team as a code owner November 20, 2025 17:00
Signed-off-by: Niccolò Fei <[email protected]>
@NiccoloFei NiccoloFei force-pushed the dev/4 branch 2 times, most recently from 968b87e to b4fe1dd Compare November 20, 2025 18:14
Signed-off-by: Niccolò Fei <[email protected]>
@NiccoloFei NiccoloFei force-pushed the dev/4 branch 4 times, most recently from cc80fb0 to afae81a Compare November 21, 2025 14:16
@NiccoloFei NiccoloFei force-pushed the dev/4 branch 2 times, most recently from a4c34dd to 9c589e4 Compare November 21, 2025 17:26
It should be distributed on its own, we shouldn't load the postgis
image with dependencies.

Signed-off-by: Francesco Canovai <[email protected]>
@fcanovai
Copy link
Contributor

I've removed pgrouting, it is not present in the current postgis containers we build, and I believe we should avoid coupling extensions.

Signed-off-by: Gabriele Bartolini <[email protected]>
@gbartolini gbartolini changed the title feat: add PostGIS feat: introduce PostGIS extension container image Nov 26, 2025
@gbartolini
Copy link
Contributor

I am not able to build the images locally. Can you please share the command you are using to verify it works? Or we can only rely on GitHub actions? @NiccoloFei @fcanovai

Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
@gbartolini gbartolini merged commit 9a9fd86 into main Nov 26, 2025
21 checks passed
@gbartolini gbartolini deleted the dev/4 branch November 26, 2025 12:09
gbartolini added a commit that referenced this pull request Nov 26, 2025
PostGIS container image:

- Added a dedicated PostGIS extension image.
- Automatically derives required OS dependencies by diffing the base minimal
  image against the additional libraries installed by PostGIS.
- Added PostGIS-specific Chainsaw tests to validate that all PostGIS-related
  extensions can be successfully installed.

Additional improvements:

- Enabled manual dispatch of builds for a specific extension target.
- Removed `update.yml` in favour of Renovate’s Deb datasource for retrieving
  PGDG packages.
- Converted boilerplate files from JSON to HCL to support Renovate comments and
  provide better customisation of the default Bake target.
- Added support for specifying a custom name for the target container image,
  allowing it to differ from the extension’s name.
- Adapted `pgvector` to above changes.
- Created `BUILD.md` with detailed instructions.
- Created a `Makefile` for a controlled local image building experience.

Closes #4

Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Francesco Canovai <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Co-authored-by: Francesco Canovai <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
shusaan pushed a commit to shusaan/postgres-extensions-containers that referenced this pull request Jan 5, 2026
PostGIS container image:

- Added a dedicated PostGIS extension image.
- Automatically derives required OS dependencies by diffing the base minimal
  image against the additional libraries installed by PostGIS.
- Added PostGIS-specific Chainsaw tests to validate that all PostGIS-related
  extensions can be successfully installed.

Additional improvements:

- Enabled manual dispatch of builds for a specific extension target.
- Removed `update.yml` in favour of Renovate’s Deb datasource for retrieving
  PGDG packages.
- Converted boilerplate files from JSON to HCL to support Renovate comments and
  provide better customisation of the default Bake target.
- Added support for specifying a custom name for the target container image,
  allowing it to differ from the extension’s name.
- Adapted `pgvector` to above changes.
- Created `BUILD.md` with detailed instructions.
- Created a `Makefile` for a controlled local image building experience.

Closes cloudnative-pg#4

Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Francesco Canovai <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Co-authored-by: Francesco Canovai <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Husn E Rabbi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build the postgis extension container image

3 participants