Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 27 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,87 +16,73 @@ jobs:
strategy:
matrix:
runner-platform: ['ubuntu-24.04', 'ubuntu-24.04-arm']
postgres: [14, 15, 16, 17]
postgis: ['3.5']
postgres: [14, 15, 16, 17, 18, 19rc1]
postgis: ['3.6']
variant: [default, alpine]
include:
- postgres: 16
postgis: master
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 19beta1
- postgres: 17
postgis: master
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 18
postgis: master
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 17
- postgres: 19rc1
postgis: master
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 19beta1
- postgres: 16
postgis: master
variant: default
runner-platform: 'ubuntu-24.04-arm'
- postgres: 17
postgis: master
variant: default
runner-platform: 'ubuntu-24.04-arm'

- postgres: 18
postgis: master
variant: default
runner-platform: 'ubuntu-24.04-arm'
- postgres: 17
- postgres: 19rc1
postgis: master
variant: default
runner-platform: 'ubuntu-24.04-arm'
- postgres: 17
postgis: '3.6'
- postgres: 19rc1
postgis: '3.7.0rc2'
variant: alpine
runner-platform: 'ubuntu-24.04'
- postgres: 17
postgis: '3.6'
- postgres: 19rc1
postgis: '3.7.0rc2'
variant: alpine
runner-platform: 'ubuntu-24.04-arm'

- postgres: 18
postgis: '3.6'
variant: alpine
runner-platform: 'ubuntu-24.04'
- postgres: 18
postgis: '3.6'
postgis: '3.7.0rc2'
variant: alpine
runner-platform: 'ubuntu-24.04-arm'
- postgres: 18
postgis: '3.6'
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 18
postgis: '3.6'
variant: default
runner-platform: 'ubuntu-24.04-arm'
- postgres: 19beta1
postgis: '3.6'
postgis: '3.7.0rc2'
variant: alpine
runner-platform: 'ubuntu-24.04'
- postgres: 19beta1
postgis: '3.6'
variant: alpine
runner-platform: 'ubuntu-24.04-arm'
- postgres: 19beta1
postgis: '3.6'
variant: default
runner-platform: 'ubuntu-24.04'
- postgres: 19beta1
postgis: '3.6'
variant: default
runner-platform: 'ubuntu-24.04-arm'

name: ${{ matrix.postgres }}-${{ matrix.postgis }}-${{ matrix.variant }} ${{ matrix.runner-platform }} - Build Docker image
runs-on: ${{ matrix.runner-platform }}
continue-on-error: ${{ matrix.postgis == 'master' }}
# Non-stable builds (PostGIS master, any alpha/beta/rc of PostgreSQL or PostGIS) must not fail the workflow.
# Note: env is not available here, and contains() is a case-insensitive substring match.
continue-on-error: >-
${{ matrix.postgis == 'master'
|| contains(format('{0}-{1}', matrix.postgres, matrix.postgis), 'alpha')
|| contains(format('{0}-{1}', matrix.postgres, matrix.postgis), 'beta')
|| contains(format('{0}-{1}', matrix.postgres, matrix.postgis), 'rc') }}
env:
VERSION: ${{ matrix.postgres }}-${{ matrix.postgis }}
VARIANT: ${{ matrix.variant }}
DOCKER_APT_PKG_VER: '5:29.2.1-1~ubuntu.24.04~noble'
DOCKER_APT_PKG_VER: '5:29.8.2-1~ubuntu.24.04~noble'

steps:
- name: Install/config specific version of Docker packages
Expand Down Expand Up @@ -144,13 +130,13 @@ jobs:
docker images --tree

- name: Checkout source
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Build docker image for ${{ env.VERSION }} ${{ env.VARIANT }}
run: make test

- name: Login to dockerhub
uses: docker/login-action@v3
uses: docker/login-action@v4
if: ${{ (github.repository == 'postgis/docker-postgis') && (github.ref == 'refs/heads/master') && (github.event_name != 'pull_request') }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
28 changes: 0 additions & 28 deletions 14-3.5/Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions 19beta1-3.6/Dockerfile → 14-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM docker.io/postgres:19beta1-trixie
FROM docker.io/postgres:14-trixie

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.6.4+dfsg-2.pgdg13+1 spatial database extension with PostgreSQL 19beta1 trixie" \
org.opencontainers.image.description="PostGIS 3.6.4+dfsg-2.pgdg13+1 spatial database extension with PostgreSQL 14 trixie" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_MAJOR=3
Expand Down
31 changes: 26 additions & 5 deletions 19beta1-3.6/alpine/Dockerfile → 14-3.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#
ARG BASE_IMAGE=postgres:19beta1-alpine3.24
ARG BASE_IMAGE=postgres:14-alpine3.24
FROM ${BASE_IMAGE}

ARG NPROC=

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.6.4 spatial database extension with PostgreSQL 19beta1 Alpine" \
org.opencontainers.image.description="PostGIS 3.6.4 spatial database extension with PostgreSQL 14 Alpine" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_VERSION=3.6.4
Expand All @@ -33,6 +33,7 @@ RUN set -eux \
\
gdal-dev \
geos-dev \
gmp-dev \
proj-dev \
proj-util \
sfcgal-dev \
Expand Down Expand Up @@ -86,10 +87,29 @@ RUN set -eux \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_sfcgal;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; --needed for postgis_tiger_geocoder "' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"' \
# Optional extensions: create them only if they are available.
# Since PostGIS 3.7.0rc, some builds may not include them.
# PostGIS 3.6.x still includes them.
# See: https://lists.osgeo.org/pipermail/postgis-devel/2026-February/030730.html
&& su postgres -c "psql -v ON_ERROR_STOP=1 -c \" \
DO \\\$\\\$ \
DECLARE \
extension_name text; \
BEGIN \
FOREACH extension_name IN ARRAY ARRAY[ \
'address_standardizer', \
'address_standardizer_data_us', \
'postgis_tiger_geocoder' \
] LOOP \
IF EXISTS (SELECT 1 FROM pg_available_extensions WHERE name = extension_name) THEN \
EXECUTE format('CREATE EXTENSION IF NOT EXISTS %I', extension_name); \
ELSE \
RAISE NOTICE 'Extension % is not available, skipping', extension_name; \
END IF; \
END LOOP; \
END \
\\\$\\\$;\"" \
&& su postgres -c 'psql -t -c "SELECT version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "SELECT PostGIS_Full_Version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "\dx"' >> /_pgis_full_version.txt \
Expand All @@ -103,6 +123,7 @@ RUN set -eux \
\
gdal \
geos \
gmp \
proj \
sfcgal \
\
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 15-3.5/Dockerfile → 15-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM docker.io/postgres:15-bullseye
FROM docker.io/postgres:15-trixie

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.5.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 15 bullseye" \
org.opencontainers.image.description="PostGIS 3.6.4+dfsg-2.pgdg13+1 spatial database extension with PostgreSQL 15 trixie" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_MAJOR=3
ENV POSTGIS_VERSION=3.5.2+dfsg-1.pgdg110+1
ENV POSTGIS_VERSION=3.6.4+dfsg-2.pgdg13+1

RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
Expand Down
33 changes: 27 additions & 6 deletions 15-3.5/alpine/Dockerfile → 15-3.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ FROM ${BASE_IMAGE}
ARG NPROC=

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.5.7 spatial database extension with PostgreSQL 15 Alpine" \
org.opencontainers.image.description="PostGIS 3.6.4 spatial database extension with PostgreSQL 15 Alpine" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_VERSION=3.5.7
ENV POSTGIS_SHA256=22f99b7f72a123f69cadb39c1b48bb01752a942d5d7967f939dd6e224a005121
ENV POSTGIS_VERSION=3.6.4
ENV POSTGIS_SHA256=4f80e1a4d227f088ae818f79180debd5894c075615823e0f556f73479cf1f200

RUN set -eux \
&& apk add --no-cache --virtual .fetch-deps \
Expand All @@ -33,6 +33,7 @@ RUN set -eux \
\
gdal-dev \
geos-dev \
gmp-dev \
proj-dev \
proj-util \
sfcgal-dev \
Expand Down Expand Up @@ -86,10 +87,29 @@ RUN set -eux \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_sfcgal;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; --needed for postgis_tiger_geocoder "' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"' \
# Optional extensions: create them only if they are available.
# Since PostGIS 3.7.0rc, some builds may not include them.
# PostGIS 3.6.x still includes them.
# See: https://lists.osgeo.org/pipermail/postgis-devel/2026-February/030730.html
&& su postgres -c "psql -v ON_ERROR_STOP=1 -c \" \
DO \\\$\\\$ \
DECLARE \
extension_name text; \
BEGIN \
FOREACH extension_name IN ARRAY ARRAY[ \
'address_standardizer', \
'address_standardizer_data_us', \
'postgis_tiger_geocoder' \
] LOOP \
IF EXISTS (SELECT 1 FROM pg_available_extensions WHERE name = extension_name) THEN \
EXECUTE format('CREATE EXTENSION IF NOT EXISTS %I', extension_name); \
ELSE \
RAISE NOTICE 'Extension % is not available, skipping', extension_name; \
END IF; \
END LOOP; \
END \
\\\$\\\$;\"" \
&& su postgres -c 'psql -t -c "SELECT version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "SELECT PostGIS_Full_Version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "\dx"' >> /_pgis_full_version.txt \
Expand All @@ -103,6 +123,7 @@ RUN set -eux \
\
gdal \
geos \
gmp \
proj \
sfcgal \
\
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 17-3.5/Dockerfile → 16-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# NOTE: THIS DOCKERFILE IS GENERATED VIA "make update"! PLEASE DO NOT EDIT IT DIRECTLY.
#

FROM docker.io/postgres:17-bullseye
FROM docker.io/postgres:16-trixie

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.5.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 17 bullseye" \
org.opencontainers.image.description="PostGIS 3.6.4+dfsg-2.pgdg13+1 spatial database extension with PostgreSQL 16 trixie" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_MAJOR=3
ENV POSTGIS_VERSION=3.5.2+dfsg-1.pgdg110+1
ENV POSTGIS_VERSION=3.6.4+dfsg-2.pgdg13+1

RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
Expand Down
33 changes: 27 additions & 6 deletions 16-3.5/alpine/Dockerfile → 16-3.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ FROM ${BASE_IMAGE}
ARG NPROC=

LABEL maintainer="PostGIS Project - https://postgis.net" \
org.opencontainers.image.description="PostGIS 3.5.7 spatial database extension with PostgreSQL 16 Alpine" \
org.opencontainers.image.description="PostGIS 3.6.4 spatial database extension with PostgreSQL 16 Alpine" \
org.opencontainers.image.source="https://github.com/postgis/docker-postgis"

ENV POSTGIS_VERSION=3.5.7
ENV POSTGIS_SHA256=22f99b7f72a123f69cadb39c1b48bb01752a942d5d7967f939dd6e224a005121
ENV POSTGIS_VERSION=3.6.4
ENV POSTGIS_SHA256=4f80e1a4d227f088ae818f79180debd5894c075615823e0f556f73479cf1f200

RUN set -eux \
&& apk add --no-cache --virtual .fetch-deps \
Expand All @@ -33,6 +33,7 @@ RUN set -eux \
\
gdal-dev \
geos-dev \
gmp-dev \
proj-dev \
proj-util \
sfcgal-dev \
Expand Down Expand Up @@ -86,10 +87,29 @@ RUN set -eux \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_raster;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_sfcgal;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; --needed for postgis_tiger_geocoder "' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;"' \
&& su postgres -c 'psql -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"' \
# Optional extensions: create them only if they are available.
# Since PostGIS 3.7.0rc, some builds may not include them.
# PostGIS 3.6.x still includes them.
# See: https://lists.osgeo.org/pipermail/postgis-devel/2026-February/030730.html
&& su postgres -c "psql -v ON_ERROR_STOP=1 -c \" \
DO \\\$\\\$ \
DECLARE \
extension_name text; \
BEGIN \
FOREACH extension_name IN ARRAY ARRAY[ \
'address_standardizer', \
'address_standardizer_data_us', \
'postgis_tiger_geocoder' \
] LOOP \
IF EXISTS (SELECT 1 FROM pg_available_extensions WHERE name = extension_name) THEN \
EXECUTE format('CREATE EXTENSION IF NOT EXISTS %I', extension_name); \
ELSE \
RAISE NOTICE 'Extension % is not available, skipping', extension_name; \
END IF; \
END LOOP; \
END \
\\\$\\\$;\"" \
&& su postgres -c 'psql -t -c "SELECT version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "SELECT PostGIS_Full_Version();"' >> /_pgis_full_version.txt \
&& su postgres -c 'psql -t -c "\dx"' >> /_pgis_full_version.txt \
Expand All @@ -103,6 +123,7 @@ RUN set -eux \
\
gdal \
geos \
gmp \
proj \
sfcgal \
\
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading