Skip to content

Commit

Permalink
- update cgal to : heads/5.6.x-branch (#348)
Browse files Browse the repository at this point in the history
- fix github worflow ci warnings
- make update ( update *-master versions )
  • Loading branch information
ImreSamu authored Jun 18, 2023
1 parent f49780d commit 1cf257e
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: make test

- name: Login to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v2
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
35 changes: 18 additions & 17 deletions 14-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

# "experimental" ; only for testing! Changes expected!
# multi-stage dockerfile; minimal docker version >= 17.05
# "Experimental"; solely for testing purposes. Anticipate frequent changes!
# This is a multi-stage Dockerfile, requiring a minimum Docker version of 17.05.

ARG DOCKER_CMAKE_BUILD_TYPE=Release
ARG CGAL_GIT_BRANCH=5.6.x-branch
FROM postgres:14-bullseye as builder

LABEL maintainer="PostGIS Project - https://postgis.net" \
Expand Down Expand Up @@ -83,17 +84,18 @@ ARG DOCKER_CMAKE_BUILD_TYPE
ENV DOCKER_CMAKE_BUILD_TYPE=${DOCKER_CMAKE_BUILD_TYPE}

# cgal & sfcgal
# By utilizing the latest commit of the CGAL 5.5.x-branch and implementing a header-only build for SFCGAL,
# By utilizing the latest commit of the CGAL 5.x.x-branch and implementing a header-only build for SFCGAL,
# one can benefit from the latest CGAL patches while avoiding compatibility issues.
ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
RUN set -ex \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone --branch ${CGAL_GIT_BRANCH} https://github.com/CGAL/cgal \
&& cd cgal \
&& git checkout ${CGAL55_GIT_HASH} \
&& git checkout ${CGAL5X_GIT_HASH} \
&& git log -1 > /_pgis_cgal_last_commit.txt \
&& cd /usr/src \
&& git clone https://gitlab.com/Oslandia/SFCGAL.git \
Expand All @@ -120,7 +122,7 @@ RUN set -ex \
&& rm -fr /usr/src/cgal

# proj
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/PROJ.git \
Expand Down Expand Up @@ -150,7 +152,7 @@ RUN set -ex \
&& rm -fr /usr/src/PROJ

# geos
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/libgeos/geos.git \
Expand All @@ -166,7 +168,7 @@ RUN set -ex \
&& rm -fr /usr/src/geos

# gdal
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/gdal.git \
Expand Down Expand Up @@ -297,12 +299,13 @@ RUN set -ex \
COPY --from=builder /_pgis*.* /
COPY --from=builder /usr/local /usr/local

ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f

# Minimal command line test ( fail fast )
RUN set -ex \
Expand All @@ -321,7 +324,7 @@ RUN set -ex \
|| echo "ogr2ogr missing PostgreSQL driver" && exit 1

# install postgis
ENV POSTGIS_GIT_HASH 36fcdd626ba8b888119c8a53c7365ca9e9786f61
ENV POSTGIS_GIT_HASH b0388921dcea093d370fddc45b3259610f34153a

RUN set -ex \
&& apt-get update \
Expand Down Expand Up @@ -363,8 +366,6 @@ RUN set -ex \
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
&& ./configure \
# --with-gui \
--with-pcredir="$(pcre-config --prefix)" \
--enable-lto \
&& make -j$(nproc) \
&& make install \
Expand Down
35 changes: 18 additions & 17 deletions 15-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

# "experimental" ; only for testing! Changes expected!
# multi-stage dockerfile; minimal docker version >= 17.05
# "Experimental"; solely for testing purposes. Anticipate frequent changes!
# This is a multi-stage Dockerfile, requiring a minimum Docker version of 17.05.

ARG DOCKER_CMAKE_BUILD_TYPE=Release
ARG CGAL_GIT_BRANCH=5.6.x-branch
FROM postgres:15-bullseye as builder

LABEL maintainer="PostGIS Project - https://postgis.net" \
Expand Down Expand Up @@ -83,17 +84,18 @@ ARG DOCKER_CMAKE_BUILD_TYPE
ENV DOCKER_CMAKE_BUILD_TYPE=${DOCKER_CMAKE_BUILD_TYPE}

# cgal & sfcgal
# By utilizing the latest commit of the CGAL 5.5.x-branch and implementing a header-only build for SFCGAL,
# By utilizing the latest commit of the CGAL 5.x.x-branch and implementing a header-only build for SFCGAL,
# one can benefit from the latest CGAL patches while avoiding compatibility issues.
ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
RUN set -ex \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone --branch ${CGAL_GIT_BRANCH} https://github.com/CGAL/cgal \
&& cd cgal \
&& git checkout ${CGAL55_GIT_HASH} \
&& git checkout ${CGAL5X_GIT_HASH} \
&& git log -1 > /_pgis_cgal_last_commit.txt \
&& cd /usr/src \
&& git clone https://gitlab.com/Oslandia/SFCGAL.git \
Expand All @@ -120,7 +122,7 @@ RUN set -ex \
&& rm -fr /usr/src/cgal

# proj
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/PROJ.git \
Expand Down Expand Up @@ -150,7 +152,7 @@ RUN set -ex \
&& rm -fr /usr/src/PROJ

# geos
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/libgeos/geos.git \
Expand All @@ -166,7 +168,7 @@ RUN set -ex \
&& rm -fr /usr/src/geos

# gdal
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/gdal.git \
Expand Down Expand Up @@ -297,12 +299,13 @@ RUN set -ex \
COPY --from=builder /_pgis*.* /
COPY --from=builder /usr/local /usr/local

ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f

# Minimal command line test ( fail fast )
RUN set -ex \
Expand All @@ -321,7 +324,7 @@ RUN set -ex \
|| echo "ogr2ogr missing PostgreSQL driver" && exit 1

# install postgis
ENV POSTGIS_GIT_HASH 36fcdd626ba8b888119c8a53c7365ca9e9786f61
ENV POSTGIS_GIT_HASH b0388921dcea093d370fddc45b3259610f34153a

RUN set -ex \
&& apt-get update \
Expand Down Expand Up @@ -363,8 +366,6 @@ RUN set -ex \
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
&& ./configure \
# --with-gui \
--with-pcredir="$(pcre-config --prefix)" \
--enable-lto \
&& make -j$(nproc) \
&& make install \
Expand Down
35 changes: 18 additions & 17 deletions 16beta1-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

# "experimental" ; only for testing! Changes expected!
# multi-stage dockerfile; minimal docker version >= 17.05
# "Experimental"; solely for testing purposes. Anticipate frequent changes!
# This is a multi-stage Dockerfile, requiring a minimum Docker version of 17.05.

ARG DOCKER_CMAKE_BUILD_TYPE=Release
ARG CGAL_GIT_BRANCH=5.6.x-branch
FROM postgres:16beta1-bullseye as builder

LABEL maintainer="PostGIS Project - https://postgis.net" \
Expand Down Expand Up @@ -83,17 +84,18 @@ ARG DOCKER_CMAKE_BUILD_TYPE
ENV DOCKER_CMAKE_BUILD_TYPE=${DOCKER_CMAKE_BUILD_TYPE}

# cgal & sfcgal
# By utilizing the latest commit of the CGAL 5.5.x-branch and implementing a header-only build for SFCGAL,
# By utilizing the latest commit of the CGAL 5.x.x-branch and implementing a header-only build for SFCGAL,
# one can benefit from the latest CGAL patches while avoiding compatibility issues.
ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
RUN set -ex \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone --branch ${CGAL_GIT_BRANCH} https://github.com/CGAL/cgal \
&& cd cgal \
&& git checkout ${CGAL55_GIT_HASH} \
&& git checkout ${CGAL5X_GIT_HASH} \
&& git log -1 > /_pgis_cgal_last_commit.txt \
&& cd /usr/src \
&& git clone https://gitlab.com/Oslandia/SFCGAL.git \
Expand All @@ -120,7 +122,7 @@ RUN set -ex \
&& rm -fr /usr/src/cgal

# proj
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/PROJ.git \
Expand Down Expand Up @@ -150,7 +152,7 @@ RUN set -ex \
&& rm -fr /usr/src/PROJ

# geos
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/libgeos/geos.git \
Expand All @@ -166,7 +168,7 @@ RUN set -ex \
&& rm -fr /usr/src/geos

# gdal
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f
RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/OSGeo/gdal.git \
Expand Down Expand Up @@ -297,12 +299,13 @@ RUN set -ex \
COPY --from=builder /_pgis*.* /
COPY --from=builder /usr/local /usr/local

ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH 0c17d17f62216319809ed3d259355bc9b35bb12e
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH ad130ba0e0603c06c2a3de887c2570b131ed206f
ENV SFCGAL_GIT_HASH ae0a12da1e7a32d163930789e62874ca6ff0792c
ENV PROJ_GIT_HASH 4c3b4264056b641de9a6baeb6aabbb69aaacbb09
ENV GEOS_GIT_HASH 335cf85d0a66540bcf4474a00f9f39c1084976b3
ENV GDAL_GIT_HASH da9dd6dbc6b6b3773c56da87245118ae2120eb9c
ENV PROJ_GIT_HASH 7e10ddc628e014c317c18d4bf464ea8947ce082b
ENV GEOS_GIT_HASH afcb31885fb206d2e3093ead943aa320a991370a
ENV GDAL_GIT_HASH 9b77dcc88edf71da468e6e29e26b17df2cf76e5f

# Minimal command line test ( fail fast )
RUN set -ex \
Expand All @@ -321,7 +324,7 @@ RUN set -ex \
|| echo "ogr2ogr missing PostgreSQL driver" && exit 1

# install postgis
ENV POSTGIS_GIT_HASH 36fcdd626ba8b888119c8a53c7365ca9e9786f61
ENV POSTGIS_GIT_HASH b0388921dcea093d370fddc45b3259610f34153a

RUN set -ex \
&& apt-get update \
Expand Down Expand Up @@ -363,8 +366,6 @@ RUN set -ex \
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
&& ./configure \
# --with-gui \
--with-pcredir="$(pcre-config --prefix)" \
--enable-lto \
&& make -j$(nproc) \
&& make install \
Expand Down
21 changes: 11 additions & 10 deletions Dockerfile.master.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# %%TXT_AUTOGENERATED%%
#

# "experimental" ; only for testing! Changes expected!
# multi-stage dockerfile; minimal docker version >= 17.05
# "Experimental"; solely for testing purposes. Anticipate frequent changes!
# This is a multi-stage Dockerfile, requiring a minimum Docker version of 17.05.

ARG DOCKER_CMAKE_BUILD_TYPE=Release
ARG CGAL_GIT_BRANCH=5.6.x-branch
FROM postgres:%%PG_MAJOR%%-%%DEBIAN_VERSION%% as builder

LABEL maintainer="PostGIS Project - https://postgis.net" \
Expand Down Expand Up @@ -83,17 +84,18 @@ ARG DOCKER_CMAKE_BUILD_TYPE
ENV DOCKER_CMAKE_BUILD_TYPE=${DOCKER_CMAKE_BUILD_TYPE}

# cgal & sfcgal
# By utilizing the latest commit of the CGAL 5.5.x-branch and implementing a header-only build for SFCGAL,
# By utilizing the latest commit of the CGAL 5.x.x-branch and implementing a header-only build for SFCGAL,
# one can benefit from the latest CGAL patches while avoiding compatibility issues.
ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH %%CGAL55_GIT_HASH%%
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH %%CGAL5X_GIT_HASH%%
ENV SFCGAL_GIT_HASH %%SFCGAL_GIT_HASH%%
RUN set -ex \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone --branch ${CGAL_GIT_BRANCH} https://github.com/CGAL/cgal \
&& cd cgal \
&& git checkout ${CGAL55_GIT_HASH} \
&& git checkout ${CGAL5X_GIT_HASH} \
&& git log -1 > /_pgis_cgal_last_commit.txt \
&& cd /usr/src \
&& git clone https://gitlab.com/Oslandia/SFCGAL.git \
Expand Down Expand Up @@ -297,8 +299,9 @@ RUN set -ex \
COPY --from=builder /_pgis*.* /
COPY --from=builder /usr/local /usr/local

ENV CGAL_GIT_BRANCH 5.5.x-branch
ENV CGAL55_GIT_HASH %%CGAL55_GIT_HASH%%
ARG CGAL_GIT_BRANCH
ENV CGAL_GIT_BRANCH=${CGAL_GIT_BRANCH}
ENV CGAL5X_GIT_HASH %%CGAL5X_GIT_HASH%%
ENV SFCGAL_GIT_HASH %%SFCGAL_GIT_HASH%%
ENV PROJ_GIT_HASH %%PROJ_GIT_HASH%%
ENV GEOS_GIT_HASH %%GEOS_GIT_HASH%%
Expand Down Expand Up @@ -363,8 +366,6 @@ RUN set -ex \
# configure options taken from:
# https://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/rules?h=jessie
&& ./configure \
# --with-gui \
--with-pcredir="$(pcre-config --prefix)" \
--enable-lto \
&& make -j$(nproc) \
&& make install \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This image ensures that the default database created by the parent `postgres` im

Unless `-e POSTGRES_DB` is passed to the container at startup time, this database will be named after the admin user (either `postgres` or the user specified with `-e POSTGRES_USER`). If you would prefer to use the older template database mechanism for enabling PostGIS, the image also provides a PostGIS-enabled template database called `template_postgis`.

# Versions (2023-05-31)
# Versions (2023-06-18)

Supported architecture: `amd64`

Expand Down Expand Up @@ -59,7 +59,7 @@ Recommended version for new users: `postgis/postgis:15-3.3`

* We provide alpha, beta, release candidate (rc), and development (identified as ~master) versions.
* The template for the `*-master` images is updated manually, which might lead to a delay of a few weeks sometimes.
* The ~master SFCGAL version is 1.4 or higher. The cgal version is locked on the [5.5.x-branch](https://github.com/CGAL/cgal/tree/5.5.x-branch).
* The ~master SFCGAL version is 1.4 or higher. The cgal version is locked on the [5.6.x-branch](https://github.com/CGAL/cgal/tree/5.6.x-branch).

| DockerHub image | Dockerfile | OS | Postgres | PostGIS |
| --------------- | ---------- | -- | -------- | ------- |
Expand Down
Loading

0 comments on commit 1cf257e

Please sign in to comment.