diff --git a/Debian/12/bookworm/Dockerfile b/Debian/12/bookworm/Dockerfile index 374869ef..60f9bf23 100644 --- a/Debian/12/bookworm/Dockerfile +++ b/Debian/12/bookworm/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/12/bullseye/Dockerfile b/Debian/12/bullseye/Dockerfile index 22f710ce..21d26f17 100644 --- a/Debian/12/bullseye/Dockerfile +++ b/Debian/12/bullseye/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/13/bookworm/Dockerfile b/Debian/13/bookworm/Dockerfile index 34b9b14d..a8e6898a 100644 --- a/Debian/13/bookworm/Dockerfile +++ b/Debian/13/bookworm/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/13/bullseye/Dockerfile b/Debian/13/bullseye/Dockerfile index 872d0029..7e3d6693 100644 --- a/Debian/13/bullseye/Dockerfile +++ b/Debian/13/bullseye/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/14/bookworm/Dockerfile b/Debian/14/bookworm/Dockerfile index c85aea38..af0d5f7e 100644 --- a/Debian/14/bookworm/Dockerfile +++ b/Debian/14/bookworm/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/14/bullseye/Dockerfile b/Debian/14/bullseye/Dockerfile index 26048405..80bc1882 100644 --- a/Debian/14/bullseye/Dockerfile +++ b/Debian/14/bullseye/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/15/bookworm/Dockerfile b/Debian/15/bookworm/Dockerfile index f7f7fb5b..c78c5cf4 100644 --- a/Debian/15/bookworm/Dockerfile +++ b/Debian/15/bookworm/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/15/bullseye/Dockerfile b/Debian/15/bullseye/Dockerfile index ee82428d..78772772 100644 --- a/Debian/15/bullseye/Dockerfile +++ b/Debian/15/bullseye/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/16/bookworm/Dockerfile b/Debian/16/bookworm/Dockerfile index 0545e4b6..dfb9a686 100644 --- a/Debian/16/bookworm/Dockerfile +++ b/Debian/16/bookworm/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/16/bullseye/Dockerfile b/Debian/16/bullseye/Dockerfile index cceb001f..c844545a 100644 --- a/Debian/16/bullseye/Dockerfile +++ b/Debian/16/bullseye/Dockerfile @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/17/bookworm/Dockerfile b/Debian/17/bookworm/Dockerfile index 7ec0f4dd..67bfc722 100644 --- a/Debian/17/bookworm/Dockerfile +++ b/Debian/17/bookworm/Dockerfile @@ -41,13 +41,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --break-system-packages --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --break-system-packages --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/17/bullseye/Dockerfile b/Debian/17/bullseye/Dockerfile index 319dfdae..9bbaee86 100644 --- a/Debian/17/bullseye/Dockerfile +++ b/Debian/17/bullseye/Dockerfile @@ -41,13 +41,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/Dockerfile-beta.template b/Debian/Dockerfile-beta.template index 2c2990ea..d99aef60 100644 --- a/Debian/Dockerfile-beta.template +++ b/Debian/Dockerfile-beta.template @@ -41,13 +41,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install %%PIP_OPTIONS%% --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26 diff --git a/Debian/Dockerfile.template b/Debian/Dockerfile.template index 508f94ea..e31d7922 100644 --- a/Debian/Dockerfile.template +++ b/Debian/Dockerfile.template @@ -43,13 +43,27 @@ RUN set -xe; \ RUN set -xe; \ apt-get update; \ apt-get install -y --no-install-recommends \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + build-essential python3-dev libsnappy-dev \ python3-pip \ python3-psycopg2 \ python3-setuptools \ ; \ pip3 install %%PIP_OPTIONS%% --upgrade pip; \ -# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved + # TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \ + # We require build dependencies to build snappy 0.6 + # on Python 3.11 or greater. + # TODO: Remove build deps once barman unpins the snappy version or + # https://github.com/EnterpriseDB/barman/issues/905 is completed + apt-get remove -y --purge --autoremove \ + build-essential \ + python3-dev \ + libsnappy-dev \ + ; \ rm -rf /var/lib/apt/lists/*; # Change the uid of postgres to 26