Skip to content

Commit 6af9dbb

Browse files
authored
upgrade: apine postgis 3.5.3 -alpine; add: 3.6.0alpha1 (#418)
* add alpine: postgis3.5.3; 3.6.0alpha1; and other minimal changes * update DOCKER_APT_PKG_VER ( github workflows )
1 parent 7d71b73 commit 6af9dbb

File tree

16 files changed

+255
-56
lines changed

16 files changed

+255
-56
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,23 @@ jobs:
3636
postgis: master
3737
variant: default
3838
runner-platform: 'ubuntu-24.04-arm'
39+
- postgres: 17
40+
postgis: '3.6.0alpha1'
41+
variant: alpine
42+
runner-platform: 'ubuntu-24.04'
43+
- postgres: 17
44+
postgis: '3.6.0alpha1'
45+
variant: alpine
46+
runner-platform: 'ubuntu-24.04-arm'
47+
3948

4049
name: Build docker image for ${{ matrix.postgres }}-${{ matrix.postgis }} variant ${{ matrix.variant }} on ${{ matrix.runner-platform }}
4150
runs-on: ${{ matrix.runner-platform }}
4251
continue-on-error: ${{ matrix.postgis == 'master' }}
4352
env:
4453
VERSION: ${{ matrix.postgres }}-${{ matrix.postgis }}
4554
VARIANT: ${{ matrix.variant }}
46-
DOCKER_APT_PKG_VER: '5:28.0.0-1~ubuntu.24.04~noble'
55+
DOCKER_APT_PKG_VER: '5:28.1.1-1~ubuntu.24.04~noble'
4756

4857
steps:
4958
- name: Install/config specific version of Docker packages
@@ -61,6 +70,8 @@ jobs:
6170
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
6271
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
6372
sudo apt-get update
73+
echo "***** Check available docker-ce versions ."
74+
sudo apt policy docker-ce
6475
echo "***** Installing Docker packages..."
6576
sudo apt-get install docker-ce=${{ env.DOCKER_APT_PKG_VER }} docker-ce-cli=${{ env.DOCKER_APT_PKG_VER }} containerd.io docker-buildx-plugin docker-compose-plugin
6677
echo "***** Verifying initial Docker installation..."

13-3.5/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ARG BASE_IMAGE=postgres:13-alpine3.21
55
FROM ${BASE_IMAGE}
66

77
LABEL maintainer="PostGIS Project - https://postgis.net" \
8-
org.opencontainers.image.description="PostGIS 3.5.2 spatial database extension with PostgreSQL 13 Alpine" \
8+
org.opencontainers.image.description="PostGIS 3.5.3 spatial database extension with PostgreSQL 13 Alpine" \
99
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
1010

11-
ENV POSTGIS_VERSION 3.5.2
12-
ENV POSTGIS_SHA256 71d8f5d06debec0bdd94525a5a1d42417ed2a1f65d0070a1a3e3e381b606ee35
11+
ENV POSTGIS_VERSION 3.5.3
12+
ENV POSTGIS_SHA256 44222ed2b8f742ffc1ceb429b09ebb484c7880f9ba27bf7b6b197346cdd25437
1313

1414
RUN set -eux \
1515
&& apk add --no-cache --virtual .fetch-deps \
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& su postgres -c 'pg_ctl -D /tempdb init' \
7979
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
8080
&& cd regress \
81-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8282
\
8383
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
8484
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

14-3.5/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ARG BASE_IMAGE=postgres:14-alpine3.21
55
FROM ${BASE_IMAGE}
66

77
LABEL maintainer="PostGIS Project - https://postgis.net" \
8-
org.opencontainers.image.description="PostGIS 3.5.2 spatial database extension with PostgreSQL 14 Alpine" \
8+
org.opencontainers.image.description="PostGIS 3.5.3 spatial database extension with PostgreSQL 14 Alpine" \
99
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
1010

11-
ENV POSTGIS_VERSION 3.5.2
12-
ENV POSTGIS_SHA256 71d8f5d06debec0bdd94525a5a1d42417ed2a1f65d0070a1a3e3e381b606ee35
11+
ENV POSTGIS_VERSION 3.5.3
12+
ENV POSTGIS_SHA256 44222ed2b8f742ffc1ceb429b09ebb484c7880f9ba27bf7b6b197346cdd25437
1313

1414
RUN set -eux \
1515
&& apk add --no-cache --virtual .fetch-deps \
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& su postgres -c 'pg_ctl -D /tempdb init' \
7979
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
8080
&& cd regress \
81-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8282
\
8383
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
8484
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

15-3.5/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ARG BASE_IMAGE=postgres:15-alpine3.21
55
FROM ${BASE_IMAGE}
66

77
LABEL maintainer="PostGIS Project - https://postgis.net" \
8-
org.opencontainers.image.description="PostGIS 3.5.2 spatial database extension with PostgreSQL 15 Alpine" \
8+
org.opencontainers.image.description="PostGIS 3.5.3 spatial database extension with PostgreSQL 15 Alpine" \
99
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
1010

11-
ENV POSTGIS_VERSION 3.5.2
12-
ENV POSTGIS_SHA256 71d8f5d06debec0bdd94525a5a1d42417ed2a1f65d0070a1a3e3e381b606ee35
11+
ENV POSTGIS_VERSION 3.5.3
12+
ENV POSTGIS_SHA256 44222ed2b8f742ffc1ceb429b09ebb484c7880f9ba27bf7b6b197346cdd25437
1313

1414
RUN set -eux \
1515
&& apk add --no-cache --virtual .fetch-deps \
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& su postgres -c 'pg_ctl -D /tempdb init' \
7979
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
8080
&& cd regress \
81-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8282
\
8383
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
8484
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

16-3.5/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ARG BASE_IMAGE=postgres:16-alpine3.21
55
FROM ${BASE_IMAGE}
66

77
LABEL maintainer="PostGIS Project - https://postgis.net" \
8-
org.opencontainers.image.description="PostGIS 3.5.2 spatial database extension with PostgreSQL 16 Alpine" \
8+
org.opencontainers.image.description="PostGIS 3.5.3 spatial database extension with PostgreSQL 16 Alpine" \
99
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
1010

11-
ENV POSTGIS_VERSION 3.5.2
12-
ENV POSTGIS_SHA256 71d8f5d06debec0bdd94525a5a1d42417ed2a1f65d0070a1a3e3e381b606ee35
11+
ENV POSTGIS_VERSION 3.5.3
12+
ENV POSTGIS_SHA256 44222ed2b8f742ffc1ceb429b09ebb484c7880f9ba27bf7b6b197346cdd25437
1313

1414
RUN set -eux \
1515
&& apk add --no-cache --virtual .fetch-deps \
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& su postgres -c 'pg_ctl -D /tempdb init' \
7979
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
8080
&& cd regress \
81-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8282
\
8383
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
8484
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

16-master/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ ENV DOCKER_CMAKE_BUILD_TYPE=${DOCKER_CMAKE_BUILD_TYPE}
8686
# cgal & sfcgal
8787
ARG CGAL_GIT_BRANCH
8888
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
89-
ENV CGAL_GIT_HASH b19515e1f82660c9709a2bd152991b8f85d3f411
90-
ENV SFCGAL_GIT_HASH a88742fe3c794e859c2b98e1f1daf030643ebdbf
89+
ENV CGAL_GIT_HASH 3610121c03353a9db28d1823685e0331fa0eb01e
90+
ENV SFCGAL_GIT_HASH 908fc727b3cd9c59a9a950e462b8f2cc7f50cbe2
9191
RUN set -ex \
9292
&& mkdir -p /usr/src \
9393
&& cd /usr/src \
@@ -120,7 +120,7 @@ RUN set -ex \
120120
&& rm -fr /usr/src/cgal
121121

122122
# proj
123-
ENV PROJ_GIT_HASH 8268efca12986e8d33c13cd42aa16ccbf14d86c1
123+
ENV PROJ_GIT_HASH b2eda4380ba433ca0702131b026309246ee5b5a5
124124
RUN set -ex \
125125
&& cd /usr/src \
126126
&& git clone https://github.com/OSGeo/PROJ.git \
@@ -150,7 +150,7 @@ RUN set -ex \
150150
&& rm -fr /usr/src/PROJ
151151

152152
# geos
153-
ENV GEOS_GIT_HASH b77f7fa6fb4161f3587eba1b6e7f00197ce46bc5
153+
ENV GEOS_GIT_HASH 31399d845873fa03caee5141f7c355cbd0660c83
154154
RUN set -ex \
155155
&& cd /usr/src \
156156
&& git clone https://github.com/libgeos/geos.git \
@@ -166,7 +166,7 @@ RUN set -ex \
166166
&& rm -fr /usr/src/geos
167167

168168
# gdal
169-
ENV GDAL_GIT_HASH 28c687a4bbf94522fd2424b007746763819c0ff4
169+
ENV GDAL_GIT_HASH 2f9b255b4c3e200435900c7605a8d42cc59f5f1d
170170
RUN set -ex \
171171
&& cd /usr/src \
172172
&& git clone https://github.com/OSGeo/gdal.git \
@@ -299,11 +299,11 @@ COPY --from=builder /usr/local /usr/local
299299

300300
ARG CGAL_GIT_BRANCH
301301
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
302-
ENV CGAL_GIT_HASH b19515e1f82660c9709a2bd152991b8f85d3f411
303-
ENV SFCGAL_GIT_HASH a88742fe3c794e859c2b98e1f1daf030643ebdbf
304-
ENV PROJ_GIT_HASH 8268efca12986e8d33c13cd42aa16ccbf14d86c1
305-
ENV GEOS_GIT_HASH b77f7fa6fb4161f3587eba1b6e7f00197ce46bc5
306-
ENV GDAL_GIT_HASH 28c687a4bbf94522fd2424b007746763819c0ff4
302+
ENV CGAL_GIT_HASH 3610121c03353a9db28d1823685e0331fa0eb01e
303+
ENV SFCGAL_GIT_HASH 908fc727b3cd9c59a9a950e462b8f2cc7f50cbe2
304+
ENV PROJ_GIT_HASH b2eda4380ba433ca0702131b026309246ee5b5a5
305+
ENV GEOS_GIT_HASH 31399d845873fa03caee5141f7c355cbd0660c83
306+
ENV GDAL_GIT_HASH 2f9b255b4c3e200435900c7605a8d42cc59f5f1d
307307

308308
# Minimal command line test ( fail fast )
309309
RUN set -ex \
@@ -322,7 +322,7 @@ RUN set -ex \
322322
|| echo "ogr2ogr missing PostgreSQL driver" && exit 1
323323

324324
# install postgis
325-
ENV POSTGIS_GIT_HASH b98401af48b5372bf73ba27e4c4cfcc78ebd49d1
325+
ENV POSTGIS_GIT_HASH 81e2bc783b77cc740291445e992658e1db7179e0
326326

327327
RUN set -ex \
328328
&& apt-get update \
@@ -382,7 +382,7 @@ RUN set -ex \
382382
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
383383
&& ldconfig \
384384
&& cd regress \
385-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
385+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
386386
\
387387
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
388388
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

17-3.5/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ARG BASE_IMAGE=postgres:17-alpine3.21
55
FROM ${BASE_IMAGE}
66

77
LABEL maintainer="PostGIS Project - https://postgis.net" \
8-
org.opencontainers.image.description="PostGIS 3.5.2 spatial database extension with PostgreSQL 17 Alpine" \
8+
org.opencontainers.image.description="PostGIS 3.5.3 spatial database extension with PostgreSQL 17 Alpine" \
99
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
1010

11-
ENV POSTGIS_VERSION 3.5.2
12-
ENV POSTGIS_SHA256 71d8f5d06debec0bdd94525a5a1d42417ed2a1f65d0070a1a3e3e381b606ee35
11+
ENV POSTGIS_VERSION 3.5.3
12+
ENV POSTGIS_SHA256 44222ed2b8f742ffc1ceb429b09ebb484c7880f9ba27bf7b6b197346cdd25437
1313

1414
RUN set -eux \
1515
&& apk add --no-cache --virtual .fetch-deps \
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& su postgres -c 'pg_ctl -D /tempdb init' \
7979
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
8080
&& cd regress \
81-
&& make -j$(nproc) check RUNTESTFLAGS=--extension PGUSER=postgres \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8282
\
8383
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
8484
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \

17-3.6.0alpha1/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# placeholder Dockerfile
2+
# Debian version of postgis is not detected!
3+
# This is an autogenerated message of ./update.sh

17-3.6.0alpha1/alpine/Dockerfile

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
3+
#
4+
ARG BASE_IMAGE=postgres:17-alpine3.21
5+
FROM ${BASE_IMAGE}
6+
7+
LABEL maintainer="PostGIS Project - https://postgis.net" \
8+
org.opencontainers.image.description="PostGIS 3.6.0alpha1 spatial database extension with PostgreSQL 17 Alpine" \
9+
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"
10+
11+
ENV POSTGIS_VERSION 3.6.0alpha1
12+
ENV POSTGIS_SHA256 9f1981716001afff2e4ec75e4107cb64e8d3d9d26ad2abf573444038db0830eb
13+
14+
RUN set -eux \
15+
&& apk add --no-cache --virtual .fetch-deps \
16+
ca-certificates \
17+
openssl \
18+
tar \
19+
\
20+
&& wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS_VERSION}.tar.gz" \
21+
&& echo "${POSTGIS_SHA256} *postgis.tar.gz" | sha256sum -c - \
22+
&& mkdir -p /usr/src/postgis \
23+
&& tar \
24+
--extract \
25+
--file postgis.tar.gz \
26+
--directory /usr/src/postgis \
27+
--strip-components 1 \
28+
&& rm postgis.tar.gz \
29+
\
30+
&& apk add --no-cache --virtual .build-deps \
31+
\
32+
gdal-dev \
33+
geos-dev \
34+
proj-dev \
35+
proj-util \
36+
sfcgal-dev \
37+
\
38+
# The upstream variable, '$DOCKER_PG_LLVM_DEPS' contains
39+
# the correct versions of 'llvm-dev' and 'clang' for the current version of PostgreSQL.
40+
# This improvement has been discussed in https://github.com/docker-library/postgres/pull/1077
41+
$DOCKER_PG_LLVM_DEPS \
42+
\
43+
autoconf \
44+
automake \
45+
cunit-dev \
46+
file \
47+
g++ \
48+
gcc \
49+
gettext-dev \
50+
git \
51+
json-c-dev \
52+
libtool \
53+
libxml2-dev \
54+
make \
55+
pcre2-dev \
56+
perl \
57+
protobuf-c-dev \
58+
\
59+
# build PostGIS - with Link Time Optimization (LTO) enabled
60+
&& cd /usr/src/postgis \
61+
&& gettextize \
62+
&& ./autogen.sh \
63+
&& ./configure \
64+
--enable-lto \
65+
&& make -j$(nproc) \
66+
&& make install \
67+
\
68+
# This section is for refreshing the proj data for the regression tests.
69+
# It serves as a workaround for an issue documented at https://trac.osgeo.org/postgis/ticket/5316
70+
# This increases the Docker image size by about 1 MB.
71+
&& projsync --system-directory --file ch_swisstopo_CHENyx06_ETRS \
72+
&& projsync --system-directory --file us_noaa_eshpgn \
73+
&& projsync --system-directory --file us_noaa_prvi \
74+
&& projsync --system-directory --file us_noaa_wmhpgn \
75+
# This section performs a regression check.
76+
&& mkdir /tempdb \
77+
&& chown -R postgres:postgres /tempdb \
78+
&& su postgres -c 'pg_ctl -D /tempdb init' \
79+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
80+
&& cd regress \
81+
&& make -j$(nproc) check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
82+
\
83+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis;"' \
84+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \
85+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_sfcgal;"' \
86+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; --needed for postgis_tiger_geocoder "' \
87+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer;"' \
88+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us;"' \
89+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;"' \
90+
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"' \
91+
&& su postgres -c 'psql -t -c "SELECT version();"' >> /_pgis_full_version.txt \
92+
&& su postgres -c 'psql -t -c "SELECT PostGIS_Full_Version();"' >> /_pgis_full_version.txt \
93+
&& su postgres -c 'psql -t -c "\dx"' >> /_pgis_full_version.txt \
94+
\
95+
&& su postgres -c 'pg_ctl -D /tempdb --mode=immediate stop' \
96+
&& rm -rf /tempdb \
97+
&& rm -rf /tmp/logfile \
98+
&& rm -rf /tmp/pgis_reg \
99+
# add .postgis-rundeps
100+
&& apk add --no-cache --virtual .postgis-rundeps \
101+
\
102+
gdal \
103+
geos \
104+
proj \
105+
sfcgal \
106+
\
107+
json-c \
108+
libstdc++ \
109+
pcre2 \
110+
protobuf-c \
111+
\
112+
# ca-certificates: for accessing remote raster files
113+
# fix https://github.com/postgis/docker-postgis/issues/307
114+
ca-certificates \
115+
# clean
116+
&& cd / \
117+
&& rm -rf /usr/src/postgis \
118+
&& apk del .fetch-deps .build-deps \
119+
# At the end of the build, we print the collected information
120+
# from the '/_pgis_full_version.txt' file. This is for experimental and internal purposes.
121+
&& cat /_pgis_full_version.txt
122+
123+
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh
124+
COPY ./update-postgis.sh /usr/local/bin
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
7+
8+
# Create the 'template_postgis' template db
9+
"${psql[@]}" <<- 'EOSQL'
10+
CREATE DATABASE template_postgis IS_TEMPLATE true;
11+
EOSQL
12+
13+
# Load PostGIS into both template_database and $POSTGRES_DB
14+
for DB in template_postgis "$POSTGRES_DB"; do
15+
echo "Loading PostGIS extensions into $DB"
16+
"${psql[@]}" --dbname="$DB" <<-'EOSQL'
17+
CREATE EXTENSION IF NOT EXISTS postgis;
18+
CREATE EXTENSION IF NOT EXISTS postgis_topology;
19+
-- Reconnect to update pg_setting.resetval
20+
-- See https://github.com/postgis/docker-postgis/issues/288
21+
\c
22+
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
23+
CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;
24+
EOSQL
25+
done

0 commit comments

Comments
 (0)