Skip to content

Commit

Permalink
chore: update sidecar Dockerfile to use renovate
Browse files Browse the repository at this point in the history
Rework the Dockerfile to list Python dependencies. Those can be updated
using renovate.

Signed-off-by: Francesco Canovai <[email protected]>
  • Loading branch information
fcanovai committed Dec 27, 2024
1 parent 5f49a0f commit d2d8904
Show file tree
Hide file tree
Showing 4 changed files with 535 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containers/Dockerfile.sidecar
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
# we should build and then copy every file into a destination that will
# then copy into the distroless container
FROM python:3.13-slim AS pythonbuilder
COPY containers/sidecar-requirements.txt .
RUN apt-get update && \
apt-get install -y postgresql-common build-essential && \
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
apt-get install -y libpq-dev && \
pip install barman[azure,cloud,google,snappy]==3.11.1 setuptools
pip install -r sidecar-requirements.txt
# Prepare a new /usr/ directory with the files we'll need in the final image
RUN mkdir /new-usr/ && \
cp -r --parents /usr/local/lib/ /usr/lib/*-linux-gnu/ /usr/local/bin/ \
Expand Down
2 changes: 2 additions & 0 deletions containers/sidecar-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
barman[azure,cloud,google,snappy]==3.11.1
setuptools==75.6.0
Loading

0 comments on commit d2d8904

Please sign in to comment.