From 772b253f784e4df268dc631e25417353269e5df9 Mon Sep 17 00:00:00 2001 From: Kamil Krzywicki Date: Mon, 2 Oct 2023 09:14:20 +0200 Subject: [PATCH] python-venv fix --- 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"; \