-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into kubectl-fix
- Loading branch information
Showing
10 changed files
with
84 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains 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 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 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Base stage # | ||
############################################################################## | ||
ARG DISTRO=debian | ||
ARG IMAGE_VERSION=bullseye | ||
ARG IMAGE_VERSION=bookworm | ||
ARG IMAGE_VARIANT=slim | ||
FROM $DISTRO:$IMAGE_VERSION-$IMAGE_VARIANT AS postgis-base | ||
LABEL maintainer="Tim Sutton<[email protected]>" | ||
|
@@ -23,13 +23,13 @@ RUN set -eux \ | |
&& apt-get update \ | ||
&& apt-get -y --no-install-recommends install \ | ||
locales gnupg2 wget ca-certificates rpl pwgen software-properties-common iputils-ping \ | ||
apt-transport-https curl gettext \ | ||
&& dpkg-divert --local --rename --add /sbin/initctl | ||
|
||
RUN apt-get -y update; apt-get -y install build-essential autoconf libxml2-dev zlib1g-dev netcat gdal-bin \ | ||
apt-transport-https curl gettext pgxnclient cmake && \ | ||
apt-get -y install build-essential autoconf libxml2-dev zlib1g-dev netcat-openbsd gdal-bin \ | ||
figlet toilet gosu; \ | ||
# verify that the binary works | ||
gosu nobody true | ||
gosu nobody true && \ | ||
dpkg-divert --local --rename --add /sbin/initctl | ||
|
||
|
||
# Generating locales takes a long time. Utilize caching by runnig it by itself | ||
# early in the build process. | ||
|
@@ -56,6 +56,8 @@ RUN if [ -z "${GENERATE_ALL_LOCALE}" ] || [ $GENERATE_ALL_LOCALE -eq 0 ]; \ | |
&& /usr/sbin/locale-gen | ||
|
||
RUN update-locale ${LANG} | ||
|
||
|
||
# Cleanup resources | ||
RUN apt-get -y --purge autoremove \ | ||
&& apt-get clean \ | ||
|
@@ -72,7 +74,7 @@ FROM postgis-base AS postgis-prod | |
ARG IMAGE_VERSION | ||
ARG POSTGRES_MAJOR_VERSION=15 | ||
ARG POSTGIS_MAJOR_VERSION=3 | ||
ARG POSTGIS_MINOR_RELEASE=3 | ||
ARG POSTGIS_MINOR_RELEASE=4 | ||
ARG TIMESCALE_VERSION=2-2.9.1 | ||
ARG BUILD_TIMESCALE=false | ||
|
||
|
@@ -94,18 +96,19 @@ RUN set -eux \ | |
# We add postgis as well to prevent build errors (that we dont see on local builds) | ||
# on docker hub e.g. | ||
# The following packages have unmet dependencies: | ||
#TODO add postgresql-${POSTGRES_MAJOR_VERSION}-cron back when it's available | ||
|
||
RUN set -eux \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get -y --no-install-recommends install postgresql-client-${POSTGRES_MAJOR_VERSION} \ | ||
postgresql-common postgresql-${POSTGRES_MAJOR_VERSION} \ | ||
postgresql-${POSTGRES_MAJOR_VERSION}-postgis-${POSTGIS_MAJOR_VERSION} \ | ||
netcat postgresql-${POSTGRES_MAJOR_VERSION}-ogr-fdw \ | ||
postgresql-${POSTGRES_MAJOR_VERSION}-ogr-fdw \ | ||
postgresql-${POSTGRES_MAJOR_VERSION}-postgis-${POSTGIS_MAJOR_VERSION}-scripts \ | ||
postgresql-plpython3-${POSTGRES_MAJOR_VERSION} postgresql-${POSTGRES_MAJOR_VERSION}-pgrouting \ | ||
postgresql-server-dev-${POSTGRES_MAJOR_VERSION} postgresql-${POSTGRES_MAJOR_VERSION}-cron \ | ||
postgresql-${POSTGRES_MAJOR_VERSION}-mysql-fdw | ||
postgresql-${POSTGRES_MAJOR_VERSION}-mysql-fdw && \ | ||
pgxn install h3 | ||
|
||
# TODO a case insensitive match would be more robust | ||
RUN if [ "${BUILD_TIMESCALE}" = "true" ]; then \ | ||
|
@@ -116,9 +119,8 @@ RUN if [ "${BUILD_TIMESCALE}" = "true" ]; then \ | |
apt-get -y --no-install-recommends install timescaledb-${TIMESCALE_VERSION}-postgresql-${POSTGRES_MAJOR_VERSION} timescaledb-tools;\ | ||
fi; | ||
|
||
RUN echo $POSTGRES_MAJOR_VERSION >/tmp/pg_version.txt | ||
RUN echo $POSTGIS_MAJOR_VERSION >/tmp/pg_major_version.txt | ||
RUN echo $POSTGIS_MINOR_RELEASE >/tmp/pg_minor_version.txt | ||
RUN echo $POSTGRES_MAJOR_VERSION >/tmp/pg_version.txt && echo $POSTGIS_MAJOR_VERSION >/tmp/pg_major_version.txt && \ | ||
echo $POSTGIS_MINOR_RELEASE >/tmp/pg_minor_version.txt | ||
ENV \ | ||
PATH="$PATH:/usr/lib/postgresql/${POSTGRES_MAJOR_VERSION}/bin" | ||
# Compile pointcloud extension | ||
|
@@ -166,4 +168,4 @@ RUN set -eux \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install -r /lib/utils/requirements.txt | ||
RUN pip3 install -r /lib/utils/requirements.txt --break-system-packages |
This file contains 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 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 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 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 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