Skip to content

Commit

Permalink
build(docker): override debian limitation for pip packages (#2682)
Browse files Browse the repository at this point in the history
New debian releases don't allow pip to install packages because they
might clash with debian packages.
Add a flag to override them when building docker images since they're
not going to break anything.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 22, 2024
1 parent 59477a0 commit 445ffe6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker/postgres-kanister-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENV DEBIAN_FRONTEND noninteractive
USER root

RUN apt-get update && apt-get -y install curl python3 groff less jq python3-pip && \
pip3 install --upgrade pip && \
pip3 install --upgrade awscli && \
pip3 install --break-system-packages --upgrade pip && \
pip3 install --break-system-packages --upgrade awscli && \
apt-get clean

# Install restic to take backups
Expand Down
6 changes: 3 additions & 3 deletions docker/postgresql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ RUN useradd -r --gid=0 --uid=1001 postgres
RUN set -x \
&& apt-get update \
&& apt-get install -y curl groff lzop pv postgresql-client python3-pip daemontools \
&& pip3 install --upgrade pip \
&& pip3 install --break-system-packages --upgrade pip \
&& hash -r pip3 \
&& pip3 install wal-e[aws] \
&& pip3 install awscli
&& pip3 install --break-system-packages wal-e[aws] \
&& pip3 install --break-system-packages awscli

USER postgres
4 changes: 2 additions & 2 deletions examples/postgres-RDS/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ENV DEBIAN_FRONTEND noninteractive
USER root

RUN apt-get update && apt-get -y install curl python3-pip && \
pip3 install --upgrade pip && \
pip3 install --upgrade awscli && \
pip3 install --break-system-packages --upgrade pip && \
pip3 install --break-system-packages --upgrade awscli && \
apt-get clean

RUN curl https://raw.githubusercontent.com/kanisterio/kanister/master/scripts/get.sh | bash
Expand Down

0 comments on commit 445ffe6

Please sign in to comment.