Merge branch 'master' into patch-1
This commit is contained in:
commit
1281d67d21
|
@ -48,7 +48,7 @@ We recommend to use a multi-stage approach to extend the docker images that we p
|
||||||
###################
|
###################
|
||||||
### Extensions ####
|
### Extensions ####
|
||||||
###################
|
###################
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.5 as extbuild
|
||||||
|
|
||||||
# Switch to the root user
|
# Switch to the root user
|
||||||
USER root
|
USER root
|
||||||
|
@ -64,7 +64,7 @@ RUN pip wheel --wheel-dir=/wheels git+https://github.com/acmecorp/ckanext-acme@0
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4
|
FROM ghcr.io/keitaroinc/ckan:2.9.5
|
||||||
|
|
||||||
# Add the custom extensions to the plugins list
|
# Add the custom extensions to the plugins list
|
||||||
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher acme
|
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher acme
|
||||||
|
@ -94,9 +94,9 @@ You can add scripts to CKAN custom images and copy them to the *docker-afterinit
|
||||||
## Build
|
## Build
|
||||||
To build a CKAN image run:
|
To build a CKAN image run:
|
||||||
```sh
|
```sh
|
||||||
docker build --tag ghcr.io/keitaroinc/ckan:2.9.4 images/ckan/2.9
|
docker build --tag ghcr.io/keitaroinc/ckan:2.9.5 images/ckan/2.9
|
||||||
```
|
```
|
||||||
The –-tag ghcr.io/keitaroinc/ckan:2.9.4 flag sets the image name to ghcr.io/keitaroinc/ckan:2.9.4 and 'images/ckan/2.9' at the end tells docker build to use the context into the specified directory where the Dockerfile and related contents are.
|
The –-tag ghcr.io/keitaroinc/ckan:2.9.5 flag sets the image name to ghcr.io/keitaroinc/ckan:2.9.5 and 'images/ckan/2.9' at the end tells docker build to use the context into the specified directory where the Dockerfile and related contents are.
|
||||||
|
|
||||||
## Upload to DockerHub
|
## Upload to DockerHub
|
||||||
>*It's recommended to upload built images to DockerHub*
|
>*It's recommended to upload built images to DockerHub*
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.4
|
CKAN_VERSION=2.9.5
|
||||||
CKAN_SITE_ID=default
|
CKAN_SITE_ID=default
|
||||||
CKAN_SITE_URL=http://localhost:5000
|
CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5000
|
CKAN_PORT=5000
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
solrconfig-2.8.9.xml
|
solrconfig-2.8.10.xml
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.4
|
CKAN_VERSION=2.9.5
|
||||||
CKAN_SITE_ID=default
|
CKAN_SITE_ID=default
|
||||||
CKAN_SITE_URL=http://localhost:5000
|
CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5000
|
CKAN_PORT=5000
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
###################
|
###################
|
||||||
### Extensions ####
|
### Extensions ####
|
||||||
###################
|
###################
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.5 as extbuild
|
||||||
|
|
||||||
# Locations and tags, please use specific tags or revisions
|
# Locations and tags, please use specific tags or revisions
|
||||||
ENV HARVEST_GIT_URL=https://github.com/ckan/ckanext-harvest
|
ENV HARVEST_GIT_URL=https://github.com/ckan/ckanext-harvest
|
||||||
|
@ -32,7 +32,7 @@ USER ckan
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4
|
FROM ghcr.io/keitaroinc/ckan:2.9.5
|
||||||
|
|
||||||
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.4
|
CKAN_VERSION=2.9.5
|
||||||
CKAN_SITE_ID=default
|
CKAN_SITE_ID=default
|
||||||
CKAN_SITE_URL=http://localhost:5000
|
CKAN_SITE_URL=http://localhost:5000
|
||||||
CKAN_PORT=5000
|
CKAN_PORT=5000
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
###################
|
###################
|
||||||
### Extensions ####
|
### Extensions ####
|
||||||
###################
|
###################
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.5 as extbuild
|
||||||
|
|
||||||
# Locations and tags, please use specific tags or revisions
|
# Locations and tags, please use specific tags or revisions
|
||||||
ENV S3FILESTORE_GIT_URL=https://github.com/keitaroinc/ckanext-s3filestore
|
ENV S3FILESTORE_GIT_URL=https://github.com/keitaroinc/ckanext-s3filestore
|
||||||
|
@ -20,7 +20,7 @@ USER ckan
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.4
|
FROM ghcr.io/keitaroinc/ckan:2.9.5
|
||||||
|
|
||||||
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
FROM alpine:3.14.2 as ckanbuild
|
FROM alpine:3.14.2 as ckanbuild
|
||||||
|
|
||||||
# Used by Github Actions to tag the image with
|
# Used by Github Actions to tag the image with
|
||||||
ENV IMAGE_TAG=2.8.9
|
ENV IMAGE_TAG=2.8.10
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.8.9
|
ENV GIT_BRANCH=ckan-2.8.10
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
FROM ubuntu:focal-20210827 as ckanbuild
|
FROM ubuntu:focal-20210827 as ckanbuild
|
||||||
|
|
||||||
# Used by Github Actions to tag the image with
|
# Used by Github Actions to tag the image with
|
||||||
ENV IMAGE_TAG=2.8.9-focal
|
ENV IMAGE_TAG=2.8.10-focal
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.8.9
|
ENV GIT_BRANCH=ckan-2.8.10
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
##################
|
##################
|
||||||
### Build CKAN ###
|
### Build CKAN ###
|
||||||
##################
|
##################
|
||||||
FROM alpine:3.14.2 as ckanbuild
|
FROM alpine:3.13.7 as ckanbuild
|
||||||
|
|
||||||
# Used by Github Actions to tag the image with
|
# Used by Github Actions to tag the image with
|
||||||
ENV IMAGE_TAG=2.9.4
|
ENV IMAGE_TAG=2.9.5
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.9.4
|
ENV GIT_BRANCH=ckan-2.9.5
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
@ -17,11 +17,9 @@ 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
|
||||||
# Make sure we install python 3.8, cause CKAN is not compatible with 3.9
|
RUN apk add --no-cache \
|
||||||
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
|
python3 \
|
||||||
python3=3.8.10-r0 \
|
python3-dev \
|
||||||
python3-dev=3.8.10-r0 && \
|
|
||||||
apk add --no-cache \
|
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
|
@ -68,7 +66,7 @@ RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==21.1.2 greenlet==1.1.0
|
||||||
###########################
|
###########################
|
||||||
### Default-Extensions ####
|
### Default-Extensions ####
|
||||||
###########################
|
###########################
|
||||||
FROM alpine:3.14.2 as extbuild
|
FROM alpine:3.13.7 as extbuild
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
@ -81,11 +79,9 @@ 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
|
||||||
|
|
||||||
# Make sure we install python 3.8, cause CKAN is not compatible with 3.9
|
RUN apk add --no-cache \
|
||||||
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
|
python3 \
|
||||||
python3=3.8.10-r0 \
|
python3-dev \
|
||||||
python3-dev=3.8.10-r0 && \
|
|
||||||
apk add --no-cache \
|
|
||||||
git \
|
git \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
|
@ -105,7 +101,7 @@ RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#e
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM alpine:3.14.2
|
FROM alpine:3.13.7
|
||||||
|
|
||||||
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
||||||
LABEL org.opencontainers.image.source https://github.com/keitaroinc/docker-ckan
|
LABEL org.opencontainers.image.source https://github.com/keitaroinc/docker-ckan
|
||||||
|
@ -119,10 +115,8 @@ 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
|
||||||
# Make sure we install python 3.8, cause CKAN is not compatible with 3.9
|
RUN apk add --no-cache \
|
||||||
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.13/main \
|
python3 \
|
||||||
python3=3.8.10-r0 && \
|
|
||||||
apk add --no-cache git \
|
|
||||||
bash \
|
bash \
|
||||||
gettext \
|
gettext \
|
||||||
curl \
|
curl \
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
FROM ubuntu:focal-20210827 as ckanbuild
|
FROM ubuntu:focal-20210827 as ckanbuild
|
||||||
|
|
||||||
# Used by Github Actions to tag the image with
|
# Used by Github Actions to tag the image with
|
||||||
ENV IMAGE_TAG=2.9.4-focal
|
ENV IMAGE_TAG=2.9.5-focal
|
||||||
|
|
||||||
# Set CKAN version to build
|
# Set CKAN version to build
|
||||||
ENV GIT_URL=https://github.com/ckan/ckan.git
|
ENV GIT_URL=https://github.com/ckan/ckan.git
|
||||||
ENV GIT_BRANCH=ckan-2.9.4
|
ENV GIT_BRANCH=ckan-2.9.5
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
@ -118,6 +118,9 @@ RUN mkdir -p ${SRC_DIR}
|
||||||
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
|
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
|
||||||
python ${SRC_DIR}/get-pip.py
|
python ${SRC_DIR}/get-pip.py
|
||||||
|
|
||||||
|
# Downgrade setuptools so that CKAN requirements can be built
|
||||||
|
RUN pip install setuptools==44.1.0
|
||||||
|
|
||||||
# Fetch and build the default CKAN extensions
|
# Fetch and build the default CKAN extensions
|
||||||
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
|
RUN pip wheel --wheel-dir=/wheels git+${ENVVARS_GIT_URL}@${ENVVARS_GIT_BRANCH}#egg=ckanext-envvars
|
||||||
|
|
||||||
|
@ -180,6 +183,9 @@ RUN apt-get update && \
|
||||||
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
|
RUN curl -o ${SRC_DIR}/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
|
||||||
python ${SRC_DIR}/get-pip.py
|
python ${SRC_DIR}/get-pip.py
|
||||||
|
|
||||||
|
# Downgrade setuptools so that CKAN requirements can be built
|
||||||
|
RUN pip install setuptools==44.1.0
|
||||||
|
|
||||||
# Get artifacts from build stages
|
# Get artifacts from build stages
|
||||||
COPY --from=ckanbuild /wheels /srv/app/wheels
|
COPY --from=ckanbuild /wheels /srv/app/wheels
|
||||||
COPY --from=extbuild /wheels /srv/app/ext_wheels
|
COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
|
|
Loading…
Reference in New Issue