Merge pull request #56 from keitaroinc/fix-examples

Pin python version to python 3.8 in examples and readme
This commit is contained in:
Blagoja Stojkoski 2021-09-22 18:23:13 +02:00 committed by GitHub
commit 2957733f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -54,7 +54,9 @@ FROM ghcr.io/keitaroinc/ckan:2.9.4 as extbuild
USER root USER root
# Install any system packages necessary to build extensions # 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 # 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 RUN pip wheel --wheel-dir=/wheels git+https://github.com/acmecorp/ckanext-acme@0.0.1#egg=ckanext-acme

View File

@ -11,12 +11,14 @@ ENV HARVEST_GIT_BRANCH=v1.3.1
USER root USER root
# Install necessary packages to build extensions # 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 \ gcc \
g++ \ g++ \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
python3-dev \
rust \ rust \
cargo cargo