From e26b340704d6de54af3d5d3eef94a2466154a5de Mon Sep 17 00:00:00 2001 From: Jonathan Gonzalez V Date: Tue, 26 Nov 2024 10:58:11 +0100 Subject: [PATCH] chore: remove build-essentials from the install package A couple of things were fixed in Barman that allow us to remove the build-essentials and a bunch of development packages Closes #117 Signed-off-by: Jonathan Gonzalez V --- Debian/Dockerfile-beta.template | 14 -------------- Debian/Dockerfile.template | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/Debian/Dockerfile-beta.template b/Debian/Dockerfile-beta.template index d99aef60..a4103d2d 100644 --- a/Debian/Dockerfile-beta.template +++ b/Debian/Dockerfile-beta.template @@ -41,11 +41,6 @@ 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 \ @@ -53,15 +48,6 @@ RUN set -xe; \ pip3 install %%PIP_OPTIONS%% --upgrade pip; \ # 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 e31d7922..ed42aa4d 100644 --- a/Debian/Dockerfile.template +++ b/Debian/Dockerfile.template @@ -43,11 +43,6 @@ 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 \ @@ -55,15 +50,6 @@ RUN set -xe; \ pip3 install %%PIP_OPTIONS%% --upgrade pip; \ # 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