From 1324dd89ed612e709fc8c84206d0a32936382789 Mon Sep 17 00:00:00 2001 From: MMeent Date: Mon, 29 Aug 2022 13:44:56 +0200 Subject: [PATCH] Mark PostGIS and PLV8 as trusted extensions (#2355) Now, users can install these extensions themselves if they are owner of the database they try to install the extension in. --- Dockerfile.compute-node | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile.compute-node b/Dockerfile.compute-node index 057441e730..950ec16016 100644 --- a/Dockerfile.compute-node +++ b/Dockerfile.compute-node @@ -33,7 +33,11 @@ RUN wget https://download.osgeo.org/postgis/source/postgis-3.2.3.tar.gz && \ make -j $(getconf _NPROCESSORS_ONLN) install && \ cd extensions/postgis && \ make clean && \ - make -j $(getconf _NPROCESSORS_ONLN) install + make -j $(getconf _NPROCESSORS_ONLN) install && \ + echo 'trusted = true' >> /usr/local/pgsql/share/extension/postgis.control && \ + echo 'trusted = true' >> /usr/local/pgsql/share/extension/postgis_raster.control && \ + echo 'trusted = true' >> /usr/local/pgsql/share/extension/postgis_tiger_geocoder.control && \ + echo 'trusted = true' >> /usr/local/pgsql/share/extension/postgis_topology.control # Build plv8 FROM build-deps AS plv8-build @@ -54,7 +58,8 @@ RUN wget https://github.com/plv8/plv8/archive/refs/tags/v3.1.3.tar.gz && \ export PATH="/usr/local/pgsql/bin:$PATH" && \ make && \ make install && \ - rm -rf /plv8-* + rm -rf /plv8-* && \ + echo 'trusted = true' >> /usr/local/pgsql/share/extension/plv8.control # compile neon extensions FROM build-deps AS neon-pg-ext-build