File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ in CloudNativePG.
2121## Supported Extensions
2222
2323- [ pgvector] ( pgvector ) - Open-source vector similarity search for PostgreSQL
24- - [ pgvector ] ( postgis ) - Open-source geospatial database extension for PostgreSQL
24+ - [ PostGIS ] ( postgis ) - Open-source geospatial database extension for PostgreSQL
2525
2626---
2727
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ ARG EXT_MAJOR
88USER 0
99
1010RUN set -eux && \
11- # Initial system libraries
12- ldconfig -p | awk '{print $NF}' | grep '^/' | sort | uniq > /tmp/base-image-libs.out && \
1311 # Install PostGIS
1412 apt-get update && \
1513 apt-get install -y --no-install-recommends "postgresql-${PG_MAJOR}-postgis-${EXT_MAJOR}=${EXT_VERSION}"
@@ -20,16 +18,14 @@ RUN mkdir -p /system /licenses && \
2018 ldd /usr/lib/postgresql/${PG_MAJOR}/lib/address_standardizer*.so \
2119 /usr/lib/postgresql/${PG_MAJOR}/lib/postgis*.so \
2220 | awk '{print $3}' | grep '^/' | sort | uniq > /tmp/all-deps.out && \
23- # Extract all the libs that aren't already part of the base image
24- comm -13 /tmp/base-image-libs.out /tmp/all-deps.out > /tmp/libraries.out && \
2521 while read -r lib; do \
2622 # Resolve the symlink to get the real file
2723 resolved=$(readlink -f "$lib" ); \
2824 # Base name of real file
2925 basename=$(basename "$resolved" ); \
3026 # Copy the real file and all its symlinks
3127 cp -a "$(dirname " $resolved")/${basename%.so*}.so" * /system/; \
32- done < /tmp/libraries .out && \
28+ done < /tmp/all-deps .out && \
3329 # Get licenses
3430 for lib in $(find /system -maxdepth 1 -type f -name '*.so*' ); do \
3531 # Get the name of the pkg that installed the library
You can’t perform that action at this time.
0 commit comments