From 8bec175e72a551e9d1d355455f6ffa38a0b92a8c Mon Sep 17 00:00:00 2001 From: Chuck Cox Date: Mon, 8 Nov 2021 19:36:35 -0600 Subject: [PATCH 1/2] fix: local build error Fixes the following error: ``` FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/lib64/python3.9/site-packages/pip/_vendor/certifi/cacert.pem' The command '/bin/sh -c pipenv install --dev' returned a non-zero code: 1 FAILED An error exit status 1 was encountered while building the Docker image. ``` --- Dockerfile-tools | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile-tools b/Dockerfile-tools index 8e4ca2b..b495574 100755 --- a/Dockerfile-tools +++ b/Dockerfile-tools @@ -9,8 +9,9 @@ USER root RUN yum -y install --disableplugin=subscription-manager wget \ && yum --disableplugin=subscription-manager clean all -RUN pip3 install pipenv -RUN pipenv install --dev +RUN pip3 install --upgrade pip==21.3.1 \ + && pip3 install --upgrade pipenv==2020.11.15 \ + && pipenv install --dev # Update python command to point to python3 install RUN alternatives --set python /usr/bin/python3 From d9c3dc8a57840d67af6b7a67e8a3b6de135ccf54 Mon Sep 17 00:00:00 2001 From: Chuck Cox Date: Mon, 8 Nov 2021 19:43:35 -0600 Subject: [PATCH 2/2] chore: newer pip ver --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef2f910..d5bb900 100755 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ COPY Pipfile* /opt/app-root/src/ ## NOTE - rhel enforces user container permissions stronger ## USER root -RUN python3 -m pip install --upgrade pip \ - && python3 -m pip install --upgrade pipenv \ +RUN pip3 install --upgrade pip==21.3.1 \ + && pip3 install --upgrade pipenv==2020.11.15 \ && pipenv install --deploy RUN pipenv lock -r > requirements.txt && pip3 install -r requirements.txt