Skip to content

Commit

Permalink
add ca-certificates: for accessing remote raster files; (#311)
Browse files Browse the repository at this point in the history
* add ca-certificates: for accessing remote raster files;
fix: #307

* add ca-certificates check the *-master template

* fix master-template error
  • Loading branch information
ImreSamu committed Sep 4, 2022
1 parent a6a9f02 commit d2806db
Show file tree
Hide file tree
Showing 24 changed files with 135 additions and 35 deletions.
4 changes: 4 additions & 0 deletions 10-2.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 2.5.5+dfsg-1.pgdg90+2
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 10-2.5/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 10-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 10-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 11-2.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 2.5.5+dfsg-1.pgdg90+2
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 11-2.5/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 11-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 11-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 12-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 12-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 13-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 13-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
27 changes: 16 additions & 11 deletions 13-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ RUN set -ex \
# sfcgal
ENV SFCGAL_VERSION master
#current:
#ENV SFCGAL_GIT_HASH 8675662a2725976642d0ecffd4efcfe68e484483
#ENV SFCGAL_GIT_HASH 9801868bad3f8b97083dce24224fb2346f2f8c1f
#reverted for the last working version
ENV SFCGAL_GIT_HASH e1f5cd801f8796ddb442c06c11ce8c30a7eed2c5

Expand All @@ -82,7 +82,7 @@ RUN set -ex \

# proj
ENV PROJ_VERSION master
ENV PROJ_GIT_HASH 1384b90602a6d2d51ed5ca0d2e28c8b4ada47aea
ENV PROJ_GIT_HASH 4cc46f72bf6943592ce7c55f147a5a51a0a2992b

RUN set -ex \
&& cd /usr/src \
Expand Down Expand Up @@ -114,7 +114,7 @@ RUN set -ex \

# geos
ENV GEOS_VERSION master
ENV GEOS_GIT_HASH 848bce44d308a05d082766da21ea5d9db2e79b8e
ENV GEOS_GIT_HASH 7135b0014e554fa1ec3a35309920c077355a77d0

RUN set -ex \
&& cd /usr/src \
Expand All @@ -131,7 +131,7 @@ RUN set -ex \

# gdal
ENV GDAL_VERSION master
ENV GDAL_GIT_HASH 581246a1ccaf62438e20be371f82453c19d54394
ENV GDAL_GIT_HASH 0592a219d11e8da539f1bc0cc9c4ce8865a08818

RUN set -ex \
&& cd /usr/src \
Expand Down Expand Up @@ -209,10 +209,10 @@ RUN set -ex \

COPY --from=builder /usr/local /usr/local

#ENV SFCGAL_GIT_HASH 8675662a2725976642d0ecffd4efcfe68e484483
ENV PROJ_GIT_HASH 1384b90602a6d2d51ed5ca0d2e28c8b4ada47aea
ENV GEOS_GIT_HASH 848bce44d308a05d082766da21ea5d9db2e79b8e
ENV GDAL_GIT_HASH 581246a1ccaf62438e20be371f82453c19d54394
#ENV SFCGAL_GIT_HASH 9801868bad3f8b97083dce24224fb2346f2f8c1f
ENV PROJ_GIT_HASH 4cc46f72bf6943592ce7c55f147a5a51a0a2992b
ENV GEOS_GIT_HASH 7135b0014e554fa1ec3a35309920c077355a77d0
ENV GDAL_GIT_HASH 0592a219d11e8da539f1bc0cc9c4ce8865a08818

# Minimal command line test.
RUN set -ex \
Expand All @@ -230,7 +230,7 @@ RUN ogr2ogr --formats | grep -q "PostgreSQL/PostGIS" && exit 0 \

# install postgis
ENV POSTGIS_VERSION master
ENV POSTGIS_GIT_HASH 2fca9d65ced41fe2cbe36d0f9d05d109b39d70db
ENV POSTGIS_GIT_HASH d31888c038285d36b460e34773e5dddece27d585

RUN set -ex \
&& apt-get update \
Expand Down Expand Up @@ -300,7 +300,6 @@ RUN set -ex \
autotools-dev \
bison \
build-essential \
ca-certificates \
cmake \
g++ \
git \
Expand All @@ -327,5 +326,11 @@ RUN set -ex \
RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh
COPY ./update-postgis.sh /usr/local/bin
RUN cat /_pgis_full_version.txt

RUN set -ex \
# Is the "ca-certificates" package installed? (for accessing remote raster files)
# https://github.com/postgis/docker-postgis/issues/307
&& dpkg-query -W -f='${Status}' ca-certificates 2>/dev/null | grep -c "ok installed" \
\
# list postgresql, postgis version
&& cat /_pgis_full_version.txt
4 changes: 4 additions & 0 deletions 14-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 14-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 14-3.3.0rc2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
27 changes: 16 additions & 11 deletions 14-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ RUN set -ex \
# sfcgal
ENV SFCGAL_VERSION master
#current:
#ENV SFCGAL_GIT_HASH 8675662a2725976642d0ecffd4efcfe68e484483
#ENV SFCGAL_GIT_HASH 9801868bad3f8b97083dce24224fb2346f2f8c1f
#reverted for the last working version
ENV SFCGAL_GIT_HASH e1f5cd801f8796ddb442c06c11ce8c30a7eed2c5

Expand All @@ -82,7 +82,7 @@ RUN set -ex \

# proj
ENV PROJ_VERSION master
ENV PROJ_GIT_HASH 1384b90602a6d2d51ed5ca0d2e28c8b4ada47aea
ENV PROJ_GIT_HASH 4cc46f72bf6943592ce7c55f147a5a51a0a2992b

RUN set -ex \
&& cd /usr/src \
Expand Down Expand Up @@ -114,7 +114,7 @@ RUN set -ex \

# geos
ENV GEOS_VERSION master
ENV GEOS_GIT_HASH 848bce44d308a05d082766da21ea5d9db2e79b8e
ENV GEOS_GIT_HASH 7135b0014e554fa1ec3a35309920c077355a77d0

RUN set -ex \
&& cd /usr/src \
Expand All @@ -131,7 +131,7 @@ RUN set -ex \

# gdal
ENV GDAL_VERSION master
ENV GDAL_GIT_HASH 581246a1ccaf62438e20be371f82453c19d54394
ENV GDAL_GIT_HASH 0592a219d11e8da539f1bc0cc9c4ce8865a08818

RUN set -ex \
&& cd /usr/src \
Expand Down Expand Up @@ -209,10 +209,10 @@ RUN set -ex \

COPY --from=builder /usr/local /usr/local

#ENV SFCGAL_GIT_HASH 8675662a2725976642d0ecffd4efcfe68e484483
ENV PROJ_GIT_HASH 1384b90602a6d2d51ed5ca0d2e28c8b4ada47aea
ENV GEOS_GIT_HASH 848bce44d308a05d082766da21ea5d9db2e79b8e
ENV GDAL_GIT_HASH 581246a1ccaf62438e20be371f82453c19d54394
#ENV SFCGAL_GIT_HASH 9801868bad3f8b97083dce24224fb2346f2f8c1f
ENV PROJ_GIT_HASH 4cc46f72bf6943592ce7c55f147a5a51a0a2992b
ENV GEOS_GIT_HASH 7135b0014e554fa1ec3a35309920c077355a77d0
ENV GDAL_GIT_HASH 0592a219d11e8da539f1bc0cc9c4ce8865a08818

# Minimal command line test.
RUN set -ex \
Expand All @@ -230,7 +230,7 @@ RUN ogr2ogr --formats | grep -q "PostgreSQL/PostGIS" && exit 0 \

# install postgis
ENV POSTGIS_VERSION master
ENV POSTGIS_GIT_HASH 2fca9d65ced41fe2cbe36d0f9d05d109b39d70db
ENV POSTGIS_GIT_HASH d31888c038285d36b460e34773e5dddece27d585

RUN set -ex \
&& apt-get update \
Expand Down Expand Up @@ -300,7 +300,6 @@ RUN set -ex \
autotools-dev \
bison \
build-essential \
ca-certificates \
cmake \
g++ \
git \
Expand All @@ -327,5 +326,11 @@ RUN set -ex \
RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh
COPY ./update-postgis.sh /usr/local/bin
RUN cat /_pgis_full_version.txt

RUN set -ex \
# Is the "ca-certificates" package installed? (for accessing remote raster files)
# https://github.com/postgis/docker-postgis/issues/307
&& dpkg-query -W -f='${Status}' ca-certificates 2>/dev/null | grep -c "ok installed" \
\
# list postgresql, postgis version
&& cat /_pgis_full_version.txt
4 changes: 4 additions & 0 deletions 15beta3-3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV POSTGIS_VERSION 3.2.3+dfsg-1.pgdg110+1
RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
# ca-certificates: for accessing remote raster files;
# fix: https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
\
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
&& rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 4 additions & 0 deletions 15beta3-3.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
4 changes: 4 additions & 0 deletions 15beta3-3.3.0rc2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ RUN set -eux \
libstdc++ \
pcre \
protobuf-c \
\
# ca-certificates: for accessing remote raster files
# fix https://github.com/postgis/docker-postgis/issues/307
ca-certificates \
# clean
&& cd / \
&& rm -rf /usr/src/postgis \
Expand Down
Loading

0 comments on commit d2806db

Please sign in to comment.