-
Notifications
You must be signed in to change notification settings - Fork 482
Prepare images for Postgres 12 / PostGIS 3.0.0 #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2cebc70
Fixes proj4 requirement problem for alpine images.
gorkemmulayim 5f4470e
add postgresql 12.0beta2 and postgis 3.0.0alpha3
tdamsma 483180e
add to travic.yml, sort envs
tdamsma da8a3d8
Add alpine image for Postgres 12 + PostGIS 3.0.0
eyusupov b5bd4e0
Fix rest of alpine Dockerfiles
eyusupov 45269e8
Update the rest of the images
eyusupov 7390356
Update ReadMe
eyusupov 8352e43
Update alpine Dockerfile to use community repo
eyusupov 726bdf6
Add gcc build dependency for Alpine images
eyusupov 80af295
supports alpine v3.11
smellman 1c412ca
- alpine template update for alpine v3.11
smellman d542179
- fixes: postgis-2.5 can't install from current packages
smellman 5345e73
added travis_retry to fix fail docker's wget command
smellman 088fabe
Merge pull request #1 from smellman/postgres-12-postgis-3
eyusupov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM postgres:10 | ||
MAINTAINER Mike Dillon <[email protected]> | ||
LABEL maintainer="Mike Dillon <[email protected]>" | ||
|
||
ENV POSTGIS_MAJOR 2.5 | ||
ENV POSTGIS_VERSION 2.5.2+dfsg-1~exp1.pgdg90+1 | ||
ENV POSTGIS_MAJOR 3 | ||
ENV POSTGIS_VERSION 3.0.0+dfsg-2~exp1.pgdg90+1 | ||
|
||
RUN apt-get update \ | ||
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ | ||
&& apt-get install -y --no-install-recommends \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ | ||
postgis=$POSTGIS_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM postgres:10-alpine | ||
MAINTAINER Régis Belson <[email protected]> | ||
LABEL maintainer="Régis Belson <[email protected]>" | ||
|
||
ENV POSTGIS_VERSION 2.5.2 | ||
ENV POSTGIS_SHA256 225aeaece00a1a6a9af15526af81bef2af27f4c198de820af1367a792ee1d1a9 | ||
ENV POSTGIS_VERSION 3.0.0 | ||
ENV POSTGIS_SHA256 1c83fb2fc8870d36ed49859c49a12c8c4c8ae8c5c3f912a21a951c5bcc249123 | ||
|
||
RUN set -ex \ | ||
\ | ||
|
@@ -24,19 +24,19 @@ RUN set -ex \ | |
&& apk add --no-cache --virtual .build-deps \ | ||
autoconf \ | ||
automake \ | ||
g++ \ | ||
file \ | ||
json-c-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
perl \ | ||
\ | ||
&& apk add --no-cache --virtual .build-deps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
clang-dev \ | ||
g++ \ | ||
gcc \ | ||
gdal-dev \ | ||
geos-dev \ | ||
proj4-dev \ | ||
llvm9-dev \ | ||
proj-dev \ | ||
protobuf-c-dev \ | ||
&& cd /usr/src/postgis \ | ||
&& ./autogen.sh \ | ||
|
@@ -48,16 +48,14 @@ RUN set -ex \ | |
&& make install \ | ||
&& apk add --no-cache --virtual .postgis-rundeps \ | ||
json-c \ | ||
&& apk add --no-cache --virtual .postgis-rundeps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
geos \ | ||
gdal \ | ||
proj4 \ | ||
proj \ | ||
libstdc++ \ | ||
protobuf-c \ | ||
&& cd / \ | ||
&& rm -rf /usr/src/postgis \ | ||
&& apk del .fetch-deps .build-deps .build-deps-edge | ||
&& apk del .fetch-deps .build-deps | ||
|
||
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh | ||
COPY ./update-postgis.sh /usr/local/bin |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM postgres:11 | ||
MAINTAINER Mike Dillon <[email protected]> | ||
LABEL maintainer="Mike Dillon <[email protected]>" | ||
|
||
ENV POSTGIS_MAJOR 2.5 | ||
ENV POSTGIS_VERSION 2.5.2+dfsg-1~exp1.pgdg90+1 | ||
ENV POSTGIS_MAJOR 3 | ||
ENV POSTGIS_VERSION 3.0.0+dfsg-2~exp1.pgdg90+1 | ||
|
||
RUN apt-get update \ | ||
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ | ||
&& apt-get install -y --no-install-recommends \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ | ||
postgis=$POSTGIS_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM postgres:11-alpine | ||
MAINTAINER Régis Belson <[email protected]> | ||
LABEL maintainer="Régis Belson <[email protected]>" | ||
|
||
ENV POSTGIS_VERSION 2.5.2 | ||
ENV POSTGIS_SHA256 225aeaece00a1a6a9af15526af81bef2af27f4c198de820af1367a792ee1d1a9 | ||
ENV POSTGIS_VERSION 3.0.0 | ||
ENV POSTGIS_SHA256 1c83fb2fc8870d36ed49859c49a12c8c4c8ae8c5c3f912a21a951c5bcc249123 | ||
|
||
RUN set -ex \ | ||
\ | ||
|
@@ -24,19 +24,19 @@ RUN set -ex \ | |
&& apk add --no-cache --virtual .build-deps \ | ||
autoconf \ | ||
automake \ | ||
g++ \ | ||
file \ | ||
json-c-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
perl \ | ||
\ | ||
&& apk add --no-cache --virtual .build-deps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
clang-dev \ | ||
g++ \ | ||
gcc \ | ||
gdal-dev \ | ||
geos-dev \ | ||
proj4-dev \ | ||
llvm9-dev \ | ||
proj-dev \ | ||
protobuf-c-dev \ | ||
&& cd /usr/src/postgis \ | ||
&& ./autogen.sh \ | ||
|
@@ -48,16 +48,14 @@ RUN set -ex \ | |
&& make install \ | ||
&& apk add --no-cache --virtual .postgis-rundeps \ | ||
json-c \ | ||
&& apk add --no-cache --virtual .postgis-rundeps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
geos \ | ||
gdal \ | ||
proj4 \ | ||
proj \ | ||
libstdc++ \ | ||
protobuf-c \ | ||
&& cd / \ | ||
&& rm -rf /usr/src/postgis \ | ||
&& apk del .fetch-deps .build-deps .build-deps-edge | ||
&& apk del .fetch-deps .build-deps | ||
|
||
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh | ||
COPY ./update-postgis.sh /usr/local/bin |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM postgres:12 | ||
LABEL maintainer="Mike Dillon <[email protected]>" | ||
|
||
ENV POSTGIS_MAJOR 3 | ||
ENV POSTGIS_VERSION 3.0.0+dfsg-2~exp1.pgdg100+1 | ||
|
||
RUN apt-get update \ | ||
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ | ||
&& apt-get install -y --no-install-recommends \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh | ||
COPY ./update-postgis.sh /usr/local/bin | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
FROM postgres:12-alpine | ||
LABEL maintainer="Régis Belson <[email protected]>" | ||
|
||
ENV POSTGIS_VERSION 3.0.0 | ||
ENV POSTGIS_SHA256 1c83fb2fc8870d36ed49859c49a12c8c4c8ae8c5c3f912a21a951c5bcc249123 | ||
|
||
RUN set -ex \ | ||
\ | ||
&& apk add --no-cache --virtual .fetch-deps \ | ||
ca-certificates \ | ||
openssl \ | ||
tar \ | ||
\ | ||
&& wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/$POSTGIS_VERSION.tar.gz" \ | ||
&& echo "$POSTGIS_SHA256 *postgis.tar.gz" | sha256sum -c - \ | ||
&& mkdir -p /usr/src/postgis \ | ||
&& tar \ | ||
--extract \ | ||
--file postgis.tar.gz \ | ||
--directory /usr/src/postgis \ | ||
--strip-components 1 \ | ||
&& rm postgis.tar.gz \ | ||
\ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
autoconf \ | ||
automake \ | ||
file \ | ||
json-c-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
perl \ | ||
clang-dev \ | ||
g++ \ | ||
gcc \ | ||
gdal-dev \ | ||
geos-dev \ | ||
llvm9-dev \ | ||
proj-dev \ | ||
protobuf-c-dev \ | ||
&& cd /usr/src/postgis \ | ||
&& ./autogen.sh \ | ||
# configure options taken from: | ||
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie | ||
&& ./configure \ | ||
# --with-gui \ | ||
&& make \ | ||
&& make install \ | ||
&& apk add --no-cache --virtual .postgis-rundeps \ | ||
json-c \ | ||
geos \ | ||
gdal \ | ||
proj \ | ||
libstdc++ \ | ||
protobuf-c \ | ||
&& cd / \ | ||
&& rm -rf /usr/src/postgis \ | ||
&& apk del .fetch-deps .build-deps | ||
|
||
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh | ||
COPY ./update-postgis.sh /usr/local/bin |
File renamed without changes.
0
9.5-2.5/alpine/update-postgis.sh → 12-3/alpine/update-postgis.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM postgres:9.4 | ||
MAINTAINER Mike Dillon <[email protected]> | ||
LABEL maintainer="Mike Dillon <[email protected]>" | ||
|
||
ENV POSTGIS_MAJOR 2.5 | ||
ENV POSTGIS_VERSION 2.5.2+dfsg-1~exp1.pgdg90+1 | ||
ENV POSTGIS_VERSION 2.5.3+dfsg-3.pgdg90+1 | ||
|
||
RUN apt-get update \ | ||
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ | ||
&& apt-get install -y --no-install-recommends \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ | ||
postgis=$POSTGIS_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM postgres:9.4-alpine | ||
MAINTAINER Régis Belson <[email protected]> | ||
LABEL maintainer="Régis Belson <[email protected]>" | ||
|
||
ENV POSTGIS_VERSION 2.5.2 | ||
ENV POSTGIS_SHA256 225aeaece00a1a6a9af15526af81bef2af27f4c198de820af1367a792ee1d1a9 | ||
ENV POSTGIS_VERSION 2.5.3 | ||
ENV POSTGIS_SHA256 402323c83d97f3859bc9083345dd687f933c261efe0830e1262c20c12671f794 | ||
|
||
RUN set -ex \ | ||
\ | ||
|
@@ -24,19 +24,19 @@ RUN set -ex \ | |
&& apk add --no-cache --virtual .build-deps \ | ||
autoconf \ | ||
automake \ | ||
g++ \ | ||
file \ | ||
json-c-dev \ | ||
libtool \ | ||
libxml2-dev \ | ||
make \ | ||
perl \ | ||
\ | ||
&& apk add --no-cache --virtual .build-deps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
clang-dev \ | ||
g++ \ | ||
gcc \ | ||
gdal-dev \ | ||
geos-dev \ | ||
proj4-dev \ | ||
llvm9-dev \ | ||
proj-dev \ | ||
protobuf-c-dev \ | ||
&& cd /usr/src/postgis \ | ||
&& ./autogen.sh \ | ||
|
@@ -48,16 +48,14 @@ RUN set -ex \ | |
&& make install \ | ||
&& apk add --no-cache --virtual .postgis-rundeps \ | ||
json-c \ | ||
&& apk add --no-cache --virtual .postgis-rundeps-edge \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | ||
geos \ | ||
gdal \ | ||
proj4 \ | ||
proj \ | ||
libstdc++ \ | ||
protobuf-c \ | ||
&& cd / \ | ||
&& rm -rf /usr/src/postgis \ | ||
&& apk del .fetch-deps .build-deps .build-deps-edge | ||
&& apk del .fetch-deps .build-deps | ||
|
||
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh | ||
COPY ./update-postgis.sh /usr/local/bin |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit - should probably sort versions?