Skip to content

Commit ea05337

Browse files
committed
chore: testing
Signed-off-by: Niccolò Fei <[email protected]>
1 parent bb34821 commit ea05337

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

postgis/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ ARG EXT_MAJOR
88
USER 0
99

1010
RUN 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

0 commit comments

Comments
 (0)