From a9d8dbba6e65d75c67625f01872ffd2cf790016f Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 29 Jan 2026 09:27:10 +0100 Subject: [PATCH] fix: add compression library dependencies for barman Barman-cloud requires lz4 and snappy compression libraries for backup and WAL compression. The pythonbuilder stage needs the development headers (liblz4-dev, libsnappy-dev) to compile the Python C-extensions into wheels, and the final runtime image needs the shared libraries (liblz4-1, libsnappy1v5) for the extensions to function. Without these dependencies, backups fail when attempting to compress data, causing the backup to enter a failed state. Signed-off-by: Marco Nenciarini --- containers/Dockerfile.sidecar | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/containers/Dockerfile.sidecar b/containers/Dockerfile.sidecar index 31d2773..9d49a00 100644 --- a/containers/Dockerfile.sidecar +++ b/containers/Dockerfile.sidecar @@ -43,7 +43,10 @@ RUN apt-get update && \ postgresql-common \ build-essential && \ /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \ - apt-get install -y --no-install-recommends libpq-dev + apt-get install -y --no-install-recommends \ + libpq-dev \ + liblz4-dev \ + libsnappy-dev # Copy requirements COPY containers/sidecar-requirements.txt . @@ -73,7 +76,10 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ postgresql-common && \ /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \ - apt-get install -y --no-install-recommends libpq5 && \ + apt-get install -y --no-install-recommends \ + libpq5 \ + liblz4-1 \ + libsnappy1v5 && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*