Skip to content

feat: add pgrouting container image - #299

Open
ofalk wants to merge 8 commits into
cloudnative-pg:mainfrom
ofalk:feat/add-pgrouting
Open

feat: add pgrouting container image#299
ofalk wants to merge 8 commits into
cloudnative-pg:mainfrom
ofalk:feat/add-pgrouting

Conversation

@ofalk

@ofalk ofalk commented Jul 28, 2026

Copy link
Copy Markdown

Description

Add pgRouting extension container image for CloudNativePG targeting PostgreSQL 18 across Debian bookworm and trixie distributions, as discussed in cloudnative-pg/postgis-containers#134

Type of change

  • Update to an existing extension (version bump, fix)
  • Shared build infrastructure / tooling change
  • Documentation only
  • Other (please describe above)

Contributor checklist

  • My commits are signed off for DCO
    compliance (git commit -s).
  • This PR targets the main branch of the upstream repository.
  • task checks:all passes locally.
  • For changes affecting one or more extensions, the relevant build and E2E
    tests pass (e.g. task bake TARGET=<ext>, task e2e:test:full TARGET=<ext>).
  • Any // renovate: comments touched in metadata.hcl / README.md remain
    intact (suite=, depName=, extractVersion=).
  • Documentation (README.md, BUILD.md, ...) updated where relevant.

Maintainer review checklist

  • CI is green for all affected targets / shared changes.
  • DCO check passes.
  • Change reviewed for correctness and scope; no unintended targets rebuilt.
  • // renovate: annotations preserved so automated version tracking keeps
    working.
  • If shared infrastructure changed, the _shared filter in
    .github/workflows/bake.yml was updated when all extensions must rebuild.
  • PR targets main and is ready to merge.

Closes #300

@ofalk

ofalk commented Jul 28, 2026

Copy link
Copy Markdown
Author

Please have a look @gbartolini !

Comment thread pgrouting/test/check-extension.yaml
@GabriFedi97
GabriFedi97 force-pushed the feat/add-pgrouting branch 3 times, most recently from 2ef1cea to a343be6 Compare July 29, 2026 15:11
Comment thread README.md Outdated
ofalk and others added 6 commits August 5, 2026 09:21
Add pgRouting extension container image for CloudNativePG targeting PostgreSQL 18 across Debian bookworm and trixie distributions.

Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
pgRouting is self-contained: its shared library links only against
standard libraries already present in the core base image, so the
build stage does not need to resolve complex dependencies and stage
them into the resulting container. Drop the system-library gathering
and the $libdir SQL rewrite and keep a minimal.

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
…fication

pgRouting links only against libraries already present in the base
image, so the container no longer ships a /system directory. Clear
ld_library_path and disable auto_update_os_libs accordingly, keeping
metadata.hcl consistent with the simplified Dockerfile.

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Add the CloudNativePG SPDX headers to the Dockerfile, metadata.hcl and
README so the extension follows the project's licensing convention, and
document the extension licensing in a "Licenses and Copyright" section.

Also drop the obsolete ld_library_path from the README Cluster example,
since the simplified image no longer ships a /system directory.

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
List the pgRouting image in the root README so users can discover it
alongside the other supported extensions.

Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Add a small pgr_dijkstra query on a throwaway graph to confirm the
extension was loaded correctly, beyond just being listed in
pg_extension.

Assisted-by: Claude Opus 5
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
@GabriFedi97
GabriFedi97 requested a review from a team as a code owner August 5, 2026 07:21
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
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.

[New Extension]: pgrouting

2 participants