Skip to content

Commit

Permalink
Use "--break-system-packages" when installing python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Feb 16, 2024
1 parent 7b24bbd commit 5c36cfc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion circleci/images/citusupgradetester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ FROM base
RUN chown -R circleci /usr/lib/postgresql/ /usr/include/postgresql/ /usr/share/postgresql/

COPY ./files/etc/requirements.txt /tmp/etc/
RUN pip3 install -Ir /tmp/etc/requirements.txt

# this image is only used for testing purposes, so should be okay to overwrite system-managed packages
RUN pip3 install -Ir /tmp/etc/requirements.txt --break-system-packages

WORKDIR /home/circleci

Expand Down
4 changes: 3 additions & 1 deletion circleci/images/failtester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql

COPY ./files/etc/requirements.txt /tmp/etc/
RUN pip3 install -Ir /tmp/etc/requirements.txt

# this image is only used for testing purposes, so should be okay to overwrite system-managed packages
RUN pip3 install -Ir /tmp/etc/requirements.txt --break-system-packages

WORKDIR /home/circleci
4 changes: 3 additions & 1 deletion circleci/images/pgupgradetester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ RUN echo "deb https://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" >> /e
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql

COPY ./files/etc/requirements.txt /tmp/etc/
RUN pip3 install -Ir /tmp/etc/requirements.txt

# this image is only used for testing purposes, so should be okay to overwrite system-managed packages
RUN pip3 install -Ir /tmp/etc/requirements.txt --break-system-packages
3 changes: 2 additions & 1 deletion circleci/images/stylechecker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ RUN apk add --no-cache --virtual installdeps \
&& make install \
&& cd ../.. \
&& rm -rf uncrustify-uncrustify-0.68.1/ \
&& pip3 install -Ir /tmp/etc/requirements.txt \
# this image is only used for testing purposes, so should be okay to overwrite system-managed packages
&& pip3 install -Ir /tmp/etc/requirements.txt --break-system-packages \
&& apk del installdeps

0 comments on commit 5c36cfc

Please sign in to comment.