@@ -56,7 +56,8 @@ RUN set -ex \
56
56
make \
57
57
pkg-config \
58
58
protobuf-c-compiler \
59
- xsltproc
59
+ xsltproc \
60
+ libpcre3-dev
60
61
61
62
# sfcgal
62
63
ENV SFCGAL_VERSION master
@@ -76,9 +77,15 @@ RUN set -ex \
76
77
&& cd / \
77
78
&& rm -fr /usr/src/SFCGAL
78
79
79
- # proj4
80
- ENV PROJ_VERSION master
81
- ENV PROJ_GIT_HASH 28aa4f13095eb69438d47f30663f13bd8780c0c1
80
+ # proj
81
+ # ##ENV PROJ_VERSION master
82
+ # ##ENV PROJ_GIT_HASH db2950e56ea26a0949b71378d73559a16fc40f26
83
+
84
+ # ## Issue with proj v8 not being compatible
85
+ # ## see https://github.com/postgis/docker-postgis/pull/220#issuecomment-765864268
86
+ # ## Below is a temp fix
87
+ ENV PROJ_VERSION 7.2.1
88
+ ENV PROJ_GIT_HASH 1212e9b818e4511cc9389b9bdb5daa0bec1a12bd
82
89
83
90
RUN set -ex \
84
91
&& cd /usr/src \
@@ -94,23 +101,27 @@ RUN set -ex \
94
101
95
102
# geos
96
103
ENV GEOS_VERSION master
97
- ENV GEOS_GIT_HASH c8e3fe8ae24a47790e063d4a64a34d99b71448d7
104
+ # ##ENV GEOS_GIT_HASH 17ab55a55aeed3e5a0a83b05428463bf1646471f
105
+ # ## lock Commits on Jan 19, 2021
106
+ # ## temp fix, see https://github.com/postgis/docker-postgis/pull/220#issuecomment-770156316
107
+ ENV GEOS_GIT_HASH 98641ab14e01a6b5a6339f49fa6f1bee4424c7d0
98
108
99
109
RUN set -ex \
100
110
&& cd /usr/src \
101
111
&& git clone https://github.com/libgeos/geos.git \
102
112
&& cd geos \
103
113
&& git checkout ${GEOS_GIT_HASH} \
104
- && ./autogen.sh \
105
- && ./configure --disable-static \
114
+ && mkdir cmake-build \
115
+ && cd cmake-build \
116
+ && cmake -DCMAKE_BUILD_TYPE=Release .. \
106
117
&& make -j$(nproc) \
107
118
&& make install \
108
119
&& cd / \
109
120
&& rm -fr /usr/src/geos
110
121
111
122
# gdal
112
123
ENV GDAL_VERSION master
113
- ENV GDAL_GIT_HASH b0a16e6a601ea49a1b7e7dd2039f50b1a0a0f061
124
+ ENV GDAL_GIT_HASH ae1531a20a4079fc0739676a3c01c760f674bbf6
114
125
115
126
RUN set -ex \
116
127
&& cd /usr/src \
@@ -133,7 +144,8 @@ RUN set -ex \
133
144
&& geos-config --version \
134
145
&& ogr2ogr --version \
135
146
&& proj \
136
- && sfcgal-config --version
147
+ && sfcgal-config --version \
148
+ && pcre-config --version
137
149
138
150
FROM postgres:12
139
151
@@ -162,6 +174,7 @@ RUN set -ex \
162
174
libtiff5 \
163
175
libxml2 \
164
176
sqlite3 \
177
+ libpcre3 \
165
178
&& rm -rf /var/lib/apt/lists/*
166
179
167
180
COPY --from=builder /usr/local /usr/local
@@ -178,7 +191,7 @@ RUN set -ex \
178
191
179
192
# install postgis
180
193
ENV POSTGIS_VERSION master
181
- ENV POSTGIS_GIT_HASH c0a97f9f80ae7af95403213fbd55ec9829dbbfc5
194
+ ENV POSTGIS_GIT_HASH 52f942583b5b9c975799bf8eefadc756a5f56215
182
195
183
196
RUN set -ex \
184
197
&& apt-get update \
@@ -198,6 +211,7 @@ RUN set -ex \
198
211
libgmp-dev \
199
212
libjson-c-dev \
200
213
libmpfr-dev \
214
+ libpcre3-dev \
201
215
libprotobuf-c-dev \
202
216
libsqlite3-dev \
203
217
libtiff-dev \
@@ -219,6 +233,7 @@ RUN set -ex \
219
233
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
220
234
&& ./configure \
221
235
# --with-gui \
236
+ --with-pcredir="$(pcre-config --prefix)" \
222
237
&& make -j$(nproc) \
223
238
&& make install \
224
239
# regress check
@@ -256,6 +271,7 @@ RUN set -ex \
256
271
libtiff-dev \
257
272
libtool \
258
273
libxml2-dev \
274
+ libpcre3-dev \
259
275
make \
260
276
pkg-config \
261
277
postgresql-server-dev-$PG_MAJOR \
0 commit comments