patch releases for CKAN 2.8.11 and 2.9.6
This commit is contained in:
parent
c3f089a241
commit
7b4bb7b809
|
@ -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.5 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.6 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.5
|
FROM ghcr.io/keitaroinc/ckan:2.9.6
|
||||||
|
|
||||||
# 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.5 images/ckan/2.9
|
docker build --tag ghcr.io/keitaroinc/ckan:2.9.6 images/ckan/2.9
|
||||||
```
|
```
|
||||||
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.
|
The –-tag ghcr.io/keitaroinc/ckan:2.9.6 flag sets the image name to ghcr.io/keitaroinc/ckan:2.9.6 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.8.10
|
CKAN_VERSION=2.8.11
|
||||||
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
|
||||||
|
|
|
@ -32,5 +32,5 @@ CKAN__DATAPUSHER__URL=http://datapusher:8000
|
||||||
CKAN__DATAPUSHER__CALLBACK_URL_BASE=http://ckan:5000/
|
CKAN__DATAPUSHER__CALLBACK_URL_BASE=http://ckan:5000/
|
||||||
|
|
||||||
# Solr configuration
|
# Solr configuration
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
CKAN_CORE_NAME=ckan
|
CKAN_CORE_NAME=ckan
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
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
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Arguments are supplied via environment variables: CKAN_CORE_NAME CKAN_VERSION
|
# Arguments are supplied via environment variables: CKAN_CORE_NAME CKAN_VERSION
|
||||||
# Example:
|
# Example:
|
||||||
# CKAN_CORE_NAME=ckan
|
# CKAN_CORE_NAME=ckan
|
||||||
# CKAN_VERSION=2.9.5
|
# CKAN_VERSION=2.9.6
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -33,5 +33,5 @@ CKAN__HARVEST__MQ__TYPE=redis
|
||||||
CKAN__HARVEST__MQ__HOSTNAME=redis
|
CKAN__HARVEST__MQ__HOSTNAME=redis
|
||||||
|
|
||||||
# Solr configuration
|
# Solr configuration
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
CKAN_CORE_NAME=ckan
|
CKAN_CORE_NAME=ckan
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
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.5 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.6 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
|
||||||
|
@ -30,7 +30,7 @@ USER ckan
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM ghcr.io/keitaroinc/ckan:2.9.5
|
FROM ghcr.io/keitaroinc/ckan:2.9.6
|
||||||
|
|
||||||
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
LABEL maintainer="Keitaro Inc <info@keitaro.com>"
|
||||||
|
|
||||||
|
|
|
@ -38,5 +38,5 @@ CKANEXT__S3FILESTORE__REGION_NAME=us-east-1
|
||||||
CKANEXT__S3FILESTORE__SIGNATURE_VERSION=s3v4
|
CKANEXT__S3FILESTORE__SIGNATURE_VERSION=s3v4
|
||||||
|
|
||||||
# Solr configuration
|
# Solr configuration
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
CKAN_CORE_NAME=ckan
|
CKAN_CORE_NAME=ckan
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.5
|
CKAN_VERSION=2.9.6
|
||||||
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.5 as extbuild
|
FROM ghcr.io/keitaroinc/ckan:2.9.6 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.5
|
FROM ghcr.io/keitaroinc/ckan:2.9.6
|
||||||
|
|
||||||
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.10
|
ENV IMAGE_TAG=2.8.11
|
||||||
|
|
||||||
# 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.10
|
ENV GIT_BRANCH=ckan-2.8.11
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
@ -54,7 +54,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==21.1.2 greenlet==1.1.0
|
RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==21.12.0 greenlet==1.1.3
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -132,7 +132,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uwsgi==2.0.19.1 gevent==21.1.2
|
RUN pip install --no-index --find-links=/srv/app/wheels uwsgi==2.0.19.1 gevent==21.12.0
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN addgroup -g 92 -S ckan && \
|
RUN addgroup -g 92 -S ckan && \
|
||||||
|
|
|
@ -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.10-focal
|
ENV IMAGE_TAG=2.8.11-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.10
|
ENV GIT_BRANCH=ckan-2.8.11
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
@ -75,7 +75,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==21.1.2 greenlet==1.1.0
|
RUN pip wheel --wheel-dir=/wheels uwsgi==2.0.19.1 gevent==21.12.0 greenlet==1.1.3
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -174,7 +174,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uwsgi==2.0.19.1 gevent==21.1.2
|
RUN pip install --no-index --find-links=/srv/app/wheels uwsgi==2.0.19.1 gevent==21.12.0
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN groupadd -g 92 ckan && \
|
RUN groupadd -g 92 ckan && \
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
FROM alpine:3.13.7 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.5
|
ENV IMAGE_TAG=2.9.6
|
||||||
|
|
||||||
# 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.5
|
ENV GIT_BRANCH=ckan-2.9.6
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
@ -60,7 +60,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.1.2 greenlet==1.1.0
|
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.12.0 greenlet==1.1.3
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -143,7 +143,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.1.2
|
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.12.0
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN addgroup -g 92 -S ckan && \
|
RUN addgroup -g 92 -S ckan && \
|
||||||
|
|
|
@ -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.5-focal
|
ENV IMAGE_TAG=2.9.6-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.5
|
ENV GIT_BRANCH=ckan-2.9.6
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
@ -81,7 +81,7 @@ COPY ./scripts/apply_ckan_patches.sh ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
RUN ${SRC_DIR}/apply_ckan_patches.sh
|
||||||
RUN rm -rf /srv/app/src/ckan/.git
|
RUN rm -rf /srv/app/src/ckan/.git
|
||||||
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
RUN pip wheel --wheel-dir=/wheels -r ckan/requirements.txt
|
||||||
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.1.2 greenlet==1.1.0
|
RUN pip wheel --wheel-dir=/wheels uWSGI==2.0.20 gevent==21.12.0 greenlet==1.1.3
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
@ -192,7 +192,7 @@ COPY --from=extbuild /wheels /srv/app/ext_wheels
|
||||||
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
COPY --from=ckanbuild /srv/app/src/ckan ${CKAN_DIR}
|
||||||
|
|
||||||
# Additional install steps for build stages artifacts
|
# Additional install steps for build stages artifacts
|
||||||
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.1.2
|
RUN pip install --no-index --find-links=/srv/app/wheels uWSGI==2.0.20 gevent==21.12.0
|
||||||
|
|
||||||
# Create a local user and group to run the app
|
# Create a local user and group to run the app
|
||||||
RUN groupadd -g 92 ckan && \
|
RUN groupadd -g 92 ckan && \
|
||||||
|
|
Loading…
Reference in New Issue