mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-09 20:22:20 +01:00
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>
This commit is contained in:
parent
883ba6aa24
commit
a9d8dbba6e
@ -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/*
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user