From 8d8f2c247bf85ef3db54b982487b8fd263c41ebc Mon Sep 17 00:00:00 2001 From: Brett <54408245+kowh-ai@users.noreply.github.com> Date: Mon, 25 Jan 2021 15:54:12 +0100 Subject: [PATCH] Pin pip version Pin the version of pip since pip dropped python2 support --- images/ckan-base/2.7/Dockerfile | 4 ++-- images/ckan-base/2.8/Dockerfile | 4 ++-- images/ckan-base/2.9/Dockerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/images/ckan-base/2.7/Dockerfile b/images/ckan-base/2.7/Dockerfile index b1c54c0..f3b7099 100755 --- a/images/ckan-base/2.7/Dockerfile +++ b/images/ckan-base/2.7/Dockerfile @@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \ # Create SRC_DIR mkdir -p ${SRC_DIR} && \ # Install pip, supervisord and uwsgi - curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \ - python ${SRC_DIR}/get-pip.py && \ + curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \ + python ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \ pip install supervisor && \ mkdir /etc/supervisord.d && \ #pip wheel --wheel-dir=/wheels uwsgi gevent && \ diff --git a/images/ckan-base/2.8/Dockerfile b/images/ckan-base/2.8/Dockerfile index 03ce6ca..48847e7 100755 --- a/images/ckan-base/2.8/Dockerfile +++ b/images/ckan-base/2.8/Dockerfile @@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \ # Create SRC_DIR mkdir -p ${SRC_DIR} && \ # Install pip, supervisord and uwsgi - curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \ - python ${SRC_DIR}/get-pip.py && \ + curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \ + python ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \ pip install supervisor && \ mkdir /etc/supervisord.d && \ #pip wheel --wheel-dir=/wheels uwsgi gevent && \ diff --git a/images/ckan-base/2.9/Dockerfile b/images/ckan-base/2.9/Dockerfile index 57cd6db..7f23965 100755 --- a/images/ckan-base/2.9/Dockerfile +++ b/images/ckan-base/2.9/Dockerfile @@ -50,8 +50,8 @@ RUN apk add --no-cache tzdata \ # Create SRC_DIR mkdir -p ${SRC_DIR} && \ # Install pip - curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \ - python3 ${SRC_DIR}/get-pip.py && \ + curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py && \ + python3 ${SRC_DIR}/get-pip.py 'pip==20.3.3' && \ rm -rf ${SRC_DIR}/get-pip.py # Set up Python3 virtual environment