Pin python version to python 3.8

This commit is contained in:
Marko Bocevski 2021-09-22 17:11:27 +02:00
parent 6b9c96ceb9
commit 4ebef5c6d9
No known key found for this signature in database
GPG Key ID: C5B52A3811855AB3
1 changed files with 15 additions and 9 deletions

View File

@ -17,10 +17,13 @@ ENV PIP_SRC=${SRC_DIR}
WORKDIR ${SRC_DIR} WORKDIR ${SRC_DIR}
# Packages to build CKAN requirements and plugins # Packages to build CKAN requirements and plugins
RUN apk add --no-cache \ # Make sure we install python 3.8, cause CKAN is not compatible with 3.9
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
python3=3.8.10-r0 \
python3-dev=3.8.10-r0 && \
apk add --no-cache \
git \ git \
curl \ curl \
python3 \
postgresql-dev \ postgresql-dev \
linux-headers \ linux-headers \
gcc \ gcc \
@ -33,7 +36,6 @@ RUN apk add --no-cache \
musl-dev \ musl-dev \
pcre-dev \ pcre-dev \
pcre \ pcre \
python3-dev \
libffi-dev \ libffi-dev \
libxml2-dev \ libxml2-dev \
libxslt-dev libxslt-dev
@ -79,11 +81,13 @@ ENV DEFAULT_EXTENSIONS envvars
ENV ENVVARS_GIT_URL=https://github.com/okfn/ckanext-envvars ENV ENVVARS_GIT_URL=https://github.com/okfn/ckanext-envvars
ENV ENVVARS_GIT_BRANCH=0.0.1 ENV ENVVARS_GIT_BRANCH=0.0.1
RUN apk add --no-cache \ # Make sure we install python 3.8, cause CKAN is not compatible with 3.9
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
python3=3.8.10-r0 \
python3-dev=3.8.10-r0 && \
apk add --no-cache \
git \ git \
curl \ curl
python3 \
python3-dev
# Link python to python3 # Link python to python3
RUN ln -s /usr/bin/python3 /usr/bin/python RUN ln -s /usr/bin/python3 /usr/bin/python
@ -115,12 +119,14 @@ ENV CKAN_SITE_URL=http://localhost:5000
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher
# Install necessary packages to run CKAN # Install necessary packages to run CKAN
RUN apk add --no-cache git \ # Make sure we install python 3.8, cause CKAN is not compatible with 3.9
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
python3=3.8.10-r0 && \
apk add --no-cache git \
bash \ bash \
gettext \ gettext \
curl \ curl \
postgresql-client \ postgresql-client \
python3 \
libmagic \ libmagic \
pcre \ pcre \
libxslt \ libxslt \