Compare commits

...

2 Commits

Author SHA1 Message Date
Marco Nenciarini
3cb78c6dea
Merge a9d8dbba6e into 064eac2199 2026-01-29 09:27:49 +01:00
Marco Nenciarini
a9d8dbba6e
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 <marco.nenciarini@enterprisedb.com>
2026-01-29 09:27:10 +01:00

View File

@ -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/*