From 02870cdb99fb0fb2780b7c5b832ef7a3348eb196 Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Wed, 22 Sep 2021 18:16:30 +0200 Subject: [PATCH] Pin python version to python 3.8 in examples and readme --- Readme.md | 4 +++- examples/harvest/Dockerfile | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index ffd25bc..3c2fddb 100644 --- a/Readme.md +++ b/Readme.md @@ -54,7 +54,9 @@ FROM ghcr.io/keitaroinc/ckan:2.9.4 as extbuild USER root # Install any system packages necessary to build extensions -RUN apk add --no-cache python3-dev +# 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-dev=3.8.10-r0 # Fetch and build the custom CKAN extensions RUN pip wheel --wheel-dir=/wheels git+https://github.com/acmecorp/ckanext-acme@0.0.1#egg=ckanext-acme diff --git a/examples/harvest/Dockerfile b/examples/harvest/Dockerfile index e708d6a..edc747a 100644 --- a/examples/harvest/Dockerfile +++ b/examples/harvest/Dockerfile @@ -11,12 +11,14 @@ ENV HARVEST_GIT_BRANCH=v1.3.1 USER root # Install necessary packages to build extensions -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-dev=3.8.10-r0 && \ + apk add --no-cache \ gcc \ g++ \ libffi-dev \ openssl-dev \ - python3-dev \ rust \ cargo