Skip to content

Commit

Permalink
Automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Nov 15, 2023
1 parent 8c934f8 commit a71fa8a
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 16/bookworm/postgis-3-pgrouting-3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM postgres:16.1-bookworm

ENV POSTGIS_MAJOR=3 \
POSTGIS_VERSION=3.4.0+dfsg-1.pgdg120+1 \
PGROUTING_MAJOR=3 \
PGROUTING_VERSION=3.5.1-1.pgdg120+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 \
postgresql-$PG_MAJOR-pgrouting=$PGROUTING_VERSION \
postgresql-$PG_MAJOR-pgrouting-scripts=$PGROUTING_VERSION && \
rm -rf /var/lib/apt/lists/*

LABEL org.opencontainers.image.source="https://github.com/GUI/postgis-docker" \
org.opencontainers.image.licenses="MIT"
15 changes: 15 additions & 0 deletions 16/bookworm/postgis-3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM postgres:16.1-bookworm

ENV POSTGIS_MAJOR=3 \
POSTGIS_VERSION=3.4.0+dfsg-1.pgdg120+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 && \
rm -rf /var/lib/apt/lists/*

LABEL org.opencontainers.image.source="https://github.com/GUI/postgis-docker" \
org.opencontainers.image.licenses="MIT"
19 changes: 19 additions & 0 deletions 16/bullseye/postgis-3-pgrouting-3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM postgres:16.1-bullseye

ENV POSTGIS_MAJOR=3 \
POSTGIS_VERSION=3.4.0+dfsg-1.pgdg110+1 \
PGROUTING_MAJOR=3 \
PGROUTING_VERSION=3.5.1-1.pgdg110+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 \
postgresql-$PG_MAJOR-pgrouting=$PGROUTING_VERSION \
postgresql-$PG_MAJOR-pgrouting-scripts=$PGROUTING_VERSION && \
rm -rf /var/lib/apt/lists/*

LABEL org.opencontainers.image.source="https://github.com/GUI/postgis-docker" \
org.opencontainers.image.licenses="MIT"
15 changes: 15 additions & 0 deletions 16/bullseye/postgis-3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM postgres:16.1-bullseye

ENV POSTGIS_MAJOR=3 \
POSTGIS_VERSION=3.4.0+dfsg-1.pgdg110+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 && \
rm -rf /var/lib/apt/lists/*

LABEL org.opencontainers.image.source="https://github.com/GUI/postgis-docker" \
org.opencontainers.image.licenses="MIT"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Images are available from either Docker Hub or GitHub Container Registery:

## Supported Tags and Respective Dockerfile Links

- PostgreSQL 16
- PostGIS 3: [`16.1-postgis-3.4.0`, `16.1-postgis-3.4`, `16.1-postgis-3`, `16-postgis-3.4.0`, `16-postgis-3.4`, `16-postgis-3`, `16.1-bookworm-postgis-3.4.0`, `16.1-bookworm-postgis-3.4`, `16.1-bookworm-postgis-3`, `16-bookworm-postgis-3.4.0`, `16-bookworm-postgis-3.4`, `16-bookworm-postgis-3`, `bookworm-postgis-3.4.0`, `bookworm-postgis-3.4`, `bookworm-postgis-3`, `latest`](https://github.com/GUI/variant-docker/blob/main/16/bookworm/postgis-3/Dockerfile)
- PostGIS 3 with pgRouting 3: [`16.1-postgis-3.4.0-pgrouting-3.5.1`, `16.1-postgis-3.4-pgrouting-3.5.1`, `16.1-postgis-3-pgrouting-3.5.1`, `16-postgis-3.4.0-pgrouting-3.5.1`, `16-postgis-3.4-pgrouting-3.5.1`, `16-postgis-3-pgrouting-3.5.1`, `16.1-bookworm-postgis-3.4.0-pgrouting-3.5.1`, `16.1-bookworm-postgis-3.4-pgrouting-3.5.1`, `16.1-bookworm-postgis-3-pgrouting-3.5.1`, `16-bookworm-postgis-3.4.0-pgrouting-3.5.1`, `16-bookworm-postgis-3.4-pgrouting-3.5.1`, `16-bookworm-postgis-3-pgrouting-3.5.1`, `bookworm-postgis-3.4.0-pgrouting-3.5.1`, `bookworm-postgis-3.4-pgrouting-3.5.1`, `bookworm-postgis-3-pgrouting-3.5.1`](https://github.com/GUI/variant-docker/blob/main/16/bookworm/postgis-3-pgrouting-3/Dockerfile)
- PostgreSQL bullseye
- PostGIS 3: [`16.1-bullseye-postgis-3.4.0`, `16.1-bullseye-postgis-3.4`, `16.1-bullseye-postgis-3`, `16-bullseye-postgis-3.4.0`, `16-bullseye-postgis-3.4`, `16-bullseye-postgis-3`, `bullseye-postgis-3.4.0`, `bullseye-postgis-3.4`, `bullseye-postgis-3`](https://github.com/GUI/variant-docker/blob/main/16/bullseye/postgis-3/Dockerfile)
- PostGIS 3 with pgRouting 3: [`16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1`, `16.1-bullseye-postgis-3.4-pgrouting-3.5.1`, `16.1-bullseye-postgis-3-pgrouting-3.5.1`, `16-bullseye-postgis-3.4.0-pgrouting-3.5.1`, `16-bullseye-postgis-3.4-pgrouting-3.5.1`, `16-bullseye-postgis-3-pgrouting-3.5.1`, `bullseye-postgis-3.4.0-pgrouting-3.5.1`, `bullseye-postgis-3.4-pgrouting-3.5.1`, `bullseye-postgis-3-pgrouting-3.5.1`](https://github.com/GUI/variant-docker/blob/main/16/bullseye/postgis-3-pgrouting-3/Dockerfile)
- PostgreSQL 15
- PostGIS 3: [`15.5-postgis-3.4.0`, `15.5-postgis-3.4`, `15.5-postgis-3`, `15-postgis-3.4.0`, `15-postgis-3.4`, `15-postgis-3`, `15.5-bookworm-postgis-3.4.0`, `15.5-bookworm-postgis-3.4`, `15.5-bookworm-postgis-3`, `15-bookworm-postgis-3.4.0`, `15-bookworm-postgis-3.4`, `15-bookworm-postgis-3`](https://github.com/GUI/variant-docker/blob/main/15/bookworm/postgis-3/Dockerfile)
- PostGIS 3 with pgRouting 3: [`15.5-postgis-3.4.0-pgrouting-3.5.1`, `15.5-postgis-3.4-pgrouting-3.5.1`, `15.5-postgis-3-pgrouting-3.5.1`, `15-postgis-3.4.0-pgrouting-3.5.1`, `15-postgis-3.4-pgrouting-3.5.1`, `15-postgis-3-pgrouting-3.5.1`, `15.5-bookworm-postgis-3.4.0-pgrouting-3.5.1`, `15.5-bookworm-postgis-3.4-pgrouting-3.5.1`, `15.5-bookworm-postgis-3-pgrouting-3.5.1`, `15-bookworm-postgis-3.4.0-pgrouting-3.5.1`, `15-bookworm-postgis-3.4-pgrouting-3.5.1`, `15-bookworm-postgis-3-pgrouting-3.5.1`](https://github.com/GUI/variant-docker/blob/main/15/bookworm/postgis-3-pgrouting-3/Dockerfile)
Expand Down
36 changes: 36 additions & 0 deletions docker-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,42 @@

set -Eeuxo pipefail

docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--pull \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-postgis-3.4.0' \
--cache-to 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-postgis-3.4.0,mode=max' \
--tag 'localhost:5000/ghcr.io/gui/postgis:build-cache-16.1-postgis-3.4.0' \
--file 16/bookworm/postgis-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--pull \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-postgis-3.4.0-pgrouting-3.5.1' \
--cache-to 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-postgis-3.4.0-pgrouting-3.5.1,mode=max' \
--tag 'localhost:5000/ghcr.io/gui/pgrouting:build-cache-16.1-postgis-3.4.0-pgrouting-3.5.1' \
--file 16/bookworm/postgis-3-pgrouting-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--pull \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-bullseye-postgis-3.4.0' \
--cache-to 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-bullseye-postgis-3.4.0,mode=max' \
--tag 'localhost:5000/ghcr.io/gui/postgis:build-cache-16.1-bullseye-postgis-3.4.0' \
--file 16/bullseye/postgis-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--pull \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' \
--cache-to 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1,mode=max' \
--tag 'localhost:5000/ghcr.io/gui/pgrouting:build-cache-16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' \
--file 16/bullseye/postgis-3-pgrouting-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--pull \
Expand Down
28 changes: 28 additions & 0 deletions docker-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@

set -Eeuxo pipefail

docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-postgis-3.4.0' \
--tag 'ghcr.io/gui/postgis:16.1-postgis-3.4.0' --tag 'nickblah/postgis:16.1-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16.1-postgis-3.4' --tag 'nickblah/postgis:16.1-postgis-3.4' --tag 'ghcr.io/gui/postgis:16.1-postgis-3' --tag 'nickblah/postgis:16.1-postgis-3' --tag 'ghcr.io/gui/postgis:16-postgis-3.4.0' --tag 'nickblah/postgis:16-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16-postgis-3.4' --tag 'nickblah/postgis:16-postgis-3.4' --tag 'ghcr.io/gui/postgis:16-postgis-3' --tag 'nickblah/postgis:16-postgis-3' --tag 'ghcr.io/gui/postgis:16.1-bookworm-postgis-3.4.0' --tag 'nickblah/postgis:16.1-bookworm-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16.1-bookworm-postgis-3.4' --tag 'nickblah/postgis:16.1-bookworm-postgis-3.4' --tag 'ghcr.io/gui/postgis:16.1-bookworm-postgis-3' --tag 'nickblah/postgis:16.1-bookworm-postgis-3' --tag 'ghcr.io/gui/postgis:16-bookworm-postgis-3.4.0' --tag 'nickblah/postgis:16-bookworm-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16-bookworm-postgis-3.4' --tag 'nickblah/postgis:16-bookworm-postgis-3.4' --tag 'ghcr.io/gui/postgis:16-bookworm-postgis-3' --tag 'nickblah/postgis:16-bookworm-postgis-3' --tag 'ghcr.io/gui/postgis:bookworm-postgis-3.4.0' --tag 'nickblah/postgis:bookworm-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:bookworm-postgis-3.4' --tag 'nickblah/postgis:bookworm-postgis-3.4' --tag 'ghcr.io/gui/postgis:bookworm-postgis-3' --tag 'nickblah/postgis:bookworm-postgis-3' --tag 'ghcr.io/gui/postgis:latest' --tag 'nickblah/postgis:latest' \
--file 16/bookworm/postgis-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-postgis-3.4.0-pgrouting-3.5.1' \
--tag 'ghcr.io/gui/pgrouting:16.1-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-bookworm-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bookworm-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bookworm-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bookworm-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bookworm-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bookworm-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bookworm-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bookworm-postgis-3-pgrouting-3.5.1' \
--file 16/bookworm/postgis-3-pgrouting-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/postgis:build-cache-16.1-bullseye-postgis-3.4.0' \
--tag 'ghcr.io/gui/postgis:16.1-bullseye-postgis-3.4.0' --tag 'nickblah/postgis:16.1-bullseye-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16.1-bullseye-postgis-3.4' --tag 'nickblah/postgis:16.1-bullseye-postgis-3.4' --tag 'ghcr.io/gui/postgis:16.1-bullseye-postgis-3' --tag 'nickblah/postgis:16.1-bullseye-postgis-3' --tag 'ghcr.io/gui/postgis:16-bullseye-postgis-3.4.0' --tag 'nickblah/postgis:16-bullseye-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:16-bullseye-postgis-3.4' --tag 'nickblah/postgis:16-bullseye-postgis-3.4' --tag 'ghcr.io/gui/postgis:16-bullseye-postgis-3' --tag 'nickblah/postgis:16-bullseye-postgis-3' --tag 'ghcr.io/gui/postgis:bullseye-postgis-3.4.0' --tag 'nickblah/postgis:bullseye-postgis-3.4.0' --tag 'ghcr.io/gui/postgis:bullseye-postgis-3.4' --tag 'nickblah/postgis:bullseye-postgis-3.4' --tag 'ghcr.io/gui/postgis:bullseye-postgis-3' --tag 'nickblah/postgis:bullseye-postgis-3' \
--file 16/bullseye/postgis-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--push \
--cache-from 'type=registry,ref=ghcr.io/gui/pgrouting:build-cache-16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' \
--tag 'ghcr.io/gui/pgrouting:16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16.1-bullseye-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16.1-bullseye-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:16-bullseye-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:16-bullseye-postgis-3-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bullseye-postgis-3.4.0-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bullseye-postgis-3.4-pgrouting-3.5.1' --tag 'ghcr.io/gui/pgrouting:bullseye-postgis-3-pgrouting-3.5.1' --tag 'nickblah/pgrouting:bullseye-postgis-3-pgrouting-3.5.1' \
--file 16/bullseye/postgis-3-pgrouting-3/Dockerfile \
.
docker buildx build \
--platform 'linux/amd64,linux/arm64' \
--push \
Expand Down
64 changes: 64 additions & 0 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,70 @@
set -Eeuo pipefail
exitcode=0

printf "16.1-postgis-3.4.0: "
output=$(docker run -v $(pwd)/test.sh:/docker-entrypoint-initdb.d/test.sh -e POSTGRES_PASSWORD=password --rm 'localhost:5000/ghcr.io/gui/postgis:build-cache-16.1-postgis-3.4.0' 2>&1 || true)
if [[ "$output" =~ "PostGIS Tests: Error" ]]; then
exitcode=1
echo "Error"
echo "$output"
echo
elif [[ "$output" =~ "PostGIS Tests: OK" ]]; then
echo "OK"
else
exitcode=1
echo "Unexpected Error"
echo "$output"
echo
fi

printf "16.1-postgis-3.4.0-pgrouting-3.5.1: "
output=$(docker run -v $(pwd)/test.sh:/docker-entrypoint-initdb.d/test.sh -e POSTGRES_PASSWORD=password --rm 'localhost:5000/ghcr.io/gui/pgrouting:build-cache-16.1-postgis-3.4.0-pgrouting-3.5.1' 2>&1 || true)
if [[ "$output" =~ "PostGIS Tests: Error" ]]; then
exitcode=1
echo "Error"
echo "$output"
echo
elif [[ "$output" =~ "PostGIS Tests: OK" ]]; then
echo "OK"
else
exitcode=1
echo "Unexpected Error"
echo "$output"
echo
fi

printf "16.1-bullseye-postgis-3.4.0: "
output=$(docker run -v $(pwd)/test.sh:/docker-entrypoint-initdb.d/test.sh -e POSTGRES_PASSWORD=password --rm 'localhost:5000/ghcr.io/gui/postgis:build-cache-16.1-bullseye-postgis-3.4.0' 2>&1 || true)
if [[ "$output" =~ "PostGIS Tests: Error" ]]; then
exitcode=1
echo "Error"
echo "$output"
echo
elif [[ "$output" =~ "PostGIS Tests: OK" ]]; then
echo "OK"
else
exitcode=1
echo "Unexpected Error"
echo "$output"
echo
fi

printf "16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1: "
output=$(docker run -v $(pwd)/test.sh:/docker-entrypoint-initdb.d/test.sh -e POSTGRES_PASSWORD=password --rm 'localhost:5000/ghcr.io/gui/pgrouting:build-cache-16.1-bullseye-postgis-3.4.0-pgrouting-3.5.1' 2>&1 || true)
if [[ "$output" =~ "PostGIS Tests: Error" ]]; then
exitcode=1
echo "Error"
echo "$output"
echo
elif [[ "$output" =~ "PostGIS Tests: OK" ]]; then
echo "OK"
else
exitcode=1
echo "Unexpected Error"
echo "$output"
echo
fi

printf "15.5-postgis-3.4.0: "
output=$(docker run -v $(pwd)/test.sh:/docker-entrypoint-initdb.d/test.sh -e POSTGRES_PASSWORD=password --rm 'localhost:5000/ghcr.io/gui/postgis:build-cache-15.5-postgis-3.4.0' 2>&1 || true)
if [[ "$output" =~ "PostGIS Tests: Error" ]]; then
Expand Down

0 comments on commit a71fa8a

Please sign in to comment.