Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion postgis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ COPY --from=builder \
/usr/lib/postgresql/${PG_MAJOR}/lib/postgis* \
/lib/

COPY --from=builder /usr/lib/postgresql/18/lib/bitcode/ /lib/bitcode/
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/bitcode/ /lib/bitcode/

# Share
COPY --from=builder \
Expand All @@ -70,6 +70,8 @@ COPY --from=builder \
/share/extension/

COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/contrib/postgis* /share/contrib/
COPY --from=builder /usr/share/gdal/ /share/gdal/
COPY --from=builder /usr/share/proj/ /share/proj/

# System libs
COPY --from=builder /system /system/
Expand Down
6 changes: 6 additions & 0 deletions postgis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ spec:
reference: ghcr.io/cloudnative-pg/postgis-extension:3.6.2-18-trixie
ld_library_path:
- system
# Requires CloudNativePG 1.29 (or higher)
env:
- name: GDAL_DATA
value: ${image_root}/share/gdal
- name: PROJ_DATA
value: ${image_root}/share/proj
```

### 2. Enable the extension in a database
Expand Down
5 changes: 4 additions & 1 deletion postgis/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ metadata = {
dynamic_library_path = []
ld_library_path = ["system"]
bin_path = []
env = {}
env = {
"GDAL_DATA" = "$${image_root}/share/gdal",
"PROJ_DATA" = "$${image_root}/share/proj",
}
auto_update_os_libs = true
required_extensions = []
create_extension = true
Expand Down
Loading