From 2425e3527847a9971859ba9dd4e73f6283bb47e4 Mon Sep 17 00:00:00 2001 From: Kamil Krzywicki <12999736+camaeel@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:04:00 +0200 Subject: [PATCH] python-venv fix (#51) --- jenkins-inbound-agent/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jenkins-inbound-agent/Dockerfile b/jenkins-inbound-agent/Dockerfile index df7ed24..08471a9 100644 --- a/jenkins-inbound-agent/Dockerfile +++ b/jenkins-inbound-agent/Dockerfile @@ -16,6 +16,8 @@ ARG CHECKOV_VERSION=2.4.36 ARG VAULT_CRD_RENDERER_VERSION=1.0.7 ARG PIP_HVAC_VERSION=1.2.1 +ENV PIP_BREAK_SYSTEM_PACKAGES=1 + RUN set -eux; \ apt-get update; \ apt-get dist-upgrade -y; \ @@ -31,7 +33,7 @@ RUN set -eux; \ jq \ xxd \ python3-pip && \ - python3 -m pip install --upgrade pip --break-system-packages && \ + python3 -m pip install --upgrade pip && \ rm -rf /var/lib/apt/lists/* RUN set -eux; \ @@ -78,7 +80,7 @@ RUN set -eux; \ unzip awscliv2.zip && ./aws/install && rm awscliv2.zip && rm -rf aws; \ #### install boto3, checov, ansible, hvac and pre-commit - pip3 install --no-cache-dir -U boto3 checkov==${CHECKOV_VERSION} ansible==${ANSIBLE_VERSION} hvac==${PIP_HVAC_VERSION} pre-commit --break-system-packages; \ + pip3 install --no-cache-dir -U boto3 checkov==${CHECKOV_VERSION} ansible==${ANSIBLE_VERSION} hvac==${PIP_HVAC_VERSION} pre-commit; \ #### install vault curl -L "${VAULT_DOWNLOAD_URL}" -o "vault.zip"; \