Pin pip to 20.3.3 and bump focal image version

This commit is contained in:
Marko Bocevski 2021-03-24 17:56:32 +01:00
parent 42f95f2f50
commit 302448080e
No known key found for this signature in database
GPG Key ID: C5B52A3811855AB3
5 changed files with 21 additions and 21 deletions

View File

@ -47,7 +47,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build CKAN and requirements
RUN pip install -e git+${GIT_URL}@${GIT_BRANCH}#egg=ckan
@ -88,7 +88,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build the default CKAN extensions
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
@ -130,7 +130,7 @@ RUN apk add --no-cache \
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Get artifacts from build stages
COPY --from=ckanbuild /wheels /srv/app/wheels

View File

@ -1,7 +1,7 @@
##################
### Build CKAN ###
##################
FROM ubuntu:focal-20201106 as ckanbuild
FROM ubuntu:focal-20210217 as ckanbuild
# Used by Github Actions to tag the image with
ENV IMAGE_TAG=2.7.10-focal
@ -72,7 +72,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build CKAN and requirements
RUN pip install -e git+${GIT_URL}@${GIT_BRANCH}#egg=ckan
@ -89,7 +89,7 @@ RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==20.6.2 greenlet==0.4.1
###########################
### Default-Extensions ####
###########################
FROM ubuntu:focal-20201106 as extbuild
FROM ubuntu:focal-20210217 as extbuild
# Set src dirs
ENV SRC_DIR=/srv/app/src
@ -115,7 +115,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build the default CKAN extensions
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
@ -123,7 +123,7 @@ RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#e
############
### MAIN ###
############
FROM ubuntu:focal-20201106
FROM ubuntu:focal-20210217
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
LABEL org.opencontainers.image.source https://github.com/keitaroinc/docker-ckan
@ -181,7 +181,7 @@ RUN apt-get update && \
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Get artifacts from build stages
COPY --from=ckanbuild /wheels /srv/app/wheels

View File

@ -43,7 +43,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build CKAN and requirements
RUN pip install -e git+${GIT_URL}@${GIT_BRANCH}#egg=ckan
@ -84,7 +84,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build the default CKAN extensions
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
@ -123,7 +123,7 @@ RUN apk add --no-cache git \
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Get artifacts from build stages
COPY --from=ckanbuild /wheels /srv/app/wheels

View File

@ -1,7 +1,7 @@
##################
### Build CKAN ###
##################
FROM ubuntu:focal-20201106 as ckanbuild
FROM ubuntu:focal-20210217 as ckanbuild
# Used by Github Actions to tag the image with
ENV IMAGE_TAG=2.8.7-focal
@ -64,7 +64,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build CKAN and requirements
RUN pip install -e git+${GIT_URL}@${GIT_BRANCH}#egg=ckan
@ -81,7 +81,7 @@ RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==20.6.2 greenlet==0.4.1
###########################
### Default-Extensions ####
###########################
FROM ubuntu:focal-20201106 as extbuild
FROM ubuntu:focal-20210217 as extbuild
# Set src dirs
ENV SRC_DIR=/srv/app/src
@ -107,7 +107,7 @@ RUN mkdir -p ${SRC_DIR}
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Fetch and build the default CKAN extensions
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
@ -115,7 +115,7 @@ RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#e
############
### MAIN ###
############
FROM ubuntu:focal-20201106
FROM ubuntu:focal-20210217
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
LABEL org.opencontainers.image.source https://github.com/keitaroinc/docker-ckan
@ -166,7 +166,7 @@ RUN apt-get update && \
# Install pip
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python ${SRC_DIR}/get-pip.py
python ${SRC_DIR}/get-pip.py 'pip==20.3.3'
# Get artifacts from build stages
COPY --from=ckanbuild /wheels /srv/app/wheels

View File

@ -1,7 +1,7 @@
##################
### Build CKAN ###
##################
FROM ubuntu:focal-20201106 as ckanbuild
FROM ubuntu:focal-20210217 as ckanbuild
# Used by Github Actions to tag the image with
ENV IMAGE_TAG=2.9.2-focal
@ -87,7 +87,7 @@ RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==20.6.2 greenlet==0.4.1
###########################
### Default-Extensions ####
###########################
FROM ubuntu:focal-20201106 as extbuild
FROM ubuntu:focal-20210217 as extbuild
# Set src dirs
ENV SRC_DIR=/srv/app/src
@ -124,7 +124,7 @@ RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#e
############
### MAIN ###
############
FROM ubuntu:focal-20201106
FROM ubuntu:focal-20210217
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
LABEL org.opencontainers.image.source https://github.com/keitaroinc/docker-ckan