New CKAN releases 2.7.9 2.8.6 2.9.1
This commit is contained in:
parent
07f48dcf82
commit
d6ecc8aa72
|
@ -40,7 +40,7 @@ We recommend to use a multi-stage approach to extend the docker images that we p
|
||||||
###################
|
###################
|
||||||
### Extensions ####
|
### Extensions ####
|
||||||
###################
|
###################
|
||||||
FROM keitaro/ckan:2.9.0 as extbuild
|
FROM keitaro/ckan:2.9.1 as extbuild
|
||||||
|
|
||||||
# Switch to the root user
|
# Switch to the root user
|
||||||
USER root
|
USER root
|
||||||
|
@ -54,7 +54,7 @@ RUN pip wheel --wheel-dir=/wheels git+https://github.com/acmecorp/ckanext-acme@0
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM keitaro/ckan:2.9.0
|
FROM keitaro/ckan:2.9.1
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -84,9 +84,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 keitaro/ckan:2.9.0 images/ckan/2.9
|
docker build --tag keitaro/ckan:2.9.1 images/ckan/2.9
|
||||||
```
|
```
|
||||||
The –-tag keitaro/ckan:2.9.0 flag sets the image name to ketiaro/ckan:2.9.0 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 keitaro/ckan:2.9.1 flag sets the image name to ketiaro/ckan:2.9.1 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.0
|
CKAN_VERSION=2.9.1
|
||||||
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
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.9.0
|
CKAN_VERSION=2.9.1
|
||||||
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 keitaro/ckan:2.9.0 as extbuild
|
FROM keitaro/ckan:2.9.1 as extbuild
|
||||||
|
|
||||||
MAINTAINER Keitaro Inc <info@keitaro.com>
|
MAINTAINER Keitaro Inc <info@keitaro.com>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ RUN curl -o /wheels/harvest.txt https://raw.githubusercontent.com/ckan/ckanext-h
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM keitaro/ckan:2.9.0
|
FROM keitaro/ckan:2.9.1
|
||||||
|
|
||||||
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher harvest ckan_harvester
|
ENV CKAN__PLUGINS envvars image_view text_view recline_view datastore datapusher harvest ckan_harvester
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ POSTGRES_PORT=5432
|
||||||
DATASTORE_READONLY_PASSWORD=datastore
|
DATASTORE_READONLY_PASSWORD=datastore
|
||||||
|
|
||||||
# CKAN
|
# CKAN
|
||||||
CKAN_VERSION=2.8.5
|
CKAN_VERSION=2.8.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 keitaro/ckan:2.8.5 as extbuild
|
FROM keitaro/ckan:2.8.6 as extbuild
|
||||||
|
|
||||||
MAINTAINER Keitaro Inc <info@keitaro.com>
|
MAINTAINER Keitaro Inc <info@keitaro.com>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ RUN curl -o /wheels/s3filestore.txt https://raw.githubusercontent.com/keitaroinc
|
||||||
############
|
############
|
||||||
### MAIN ###
|
### MAIN ###
|
||||||
############
|
############
|
||||||
FROM keitaro/ckan:2.8.5
|
FROM keitaro/ckan:2.8.6
|
||||||
|
|
||||||
MAINTAINER Keitaro Inc <info@keitaro.com>
|
MAINTAINER Keitaro Inc <info@keitaro.com>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ FROM alpine:3.12 as ckanbuild
|
||||||
|
|
||||||
# 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.7.8
|
ENV GIT_BRANCH=ckan-2.7.9
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
--- ckan/ckanext/datapusher/logic/action.py 2020-09-19 21:25:06.525350202 +0200
|
|
||||||
+++ action_fix_callback_url.py 2020-09-19 21:27:43.596501963 +0200
|
|
||||||
@@ -61,13 +61,13 @@
|
|
||||||
|
|
||||||
datapusher_url = config.get('ckan.datapusher.url')
|
|
||||||
|
|
||||||
- site_url = h.url_for('/', qualified=True)
|
|
||||||
-
|
|
||||||
callback_url_base = config.get('ckan.datapusher.callback_url_base')
|
|
||||||
if callback_url_base:
|
|
||||||
+ site_url = callback_url_base
|
|
||||||
callback_url = urlparse.urljoin(
|
|
||||||
callback_url_base.rstrip('/'), '/api/3/action/datapusher_hook')
|
|
||||||
else:
|
|
||||||
+ site_url = h.url_for('/', qualified=True)
|
|
||||||
callback_url = h.url_for(
|
|
||||||
'/api/3/action/datapusher_hook', qualified=True)
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
--- ckan/ckan/lib/navl/dictization_functions.py 2020-10-14 10:48:40.146291362 +0200
|
|
||||||
+++ dictization_functions_unflatten_patch.py 2020-10-14 10:48:29.979771608 +0200
|
|
||||||
@@ -440,19 +440,24 @@
|
|
||||||
for flattend_key in sorted(data.keys(), key=flattened_order_key):
|
|
||||||
current_pos = unflattened
|
|
||||||
|
|
||||||
+ if (len(flattend_key) > 1
|
|
||||||
+ and not flattend_key[0] in convert_to_list
|
|
||||||
+ and not flattend_key[0] in unflattened):
|
|
||||||
+ convert_to_list.append(flattend_key[0])
|
|
||||||
+
|
|
||||||
for key in flattend_key[:-1]:
|
|
||||||
try:
|
|
||||||
current_pos = current_pos[key]
|
|
||||||
- except IndexError:
|
|
||||||
- new_pos = {}
|
|
||||||
- current_pos.append(new_pos)
|
|
||||||
- current_pos = new_pos
|
|
||||||
except KeyError:
|
|
||||||
- new_pos = []
|
|
||||||
+ new_pos = {}
|
|
||||||
current_pos[key] = new_pos
|
|
||||||
current_pos = new_pos
|
|
||||||
current_pos[flattend_key[-1]] = data[flattend_key]
|
|
||||||
|
|
||||||
+ for key in convert_to_list:
|
|
||||||
+ unflattened[key] = [unflattened[key][s]
|
|
||||||
+ for s in sorted(unflattened[key])]
|
|
||||||
+
|
|
||||||
return unflattened
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ FROM alpine:3.12 as ckanbuild
|
||||||
|
|
||||||
# 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.5
|
ENV GIT_BRANCH=ckan-2.8.6
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
--- ckan/ckanext/datapusher/logic/action.py 2020-09-19 21:25:06.525350202 +0200
|
|
||||||
+++ action_fix_callback_url.py 2020-09-19 21:27:43.596501963 +0200
|
|
||||||
@@ -61,13 +61,13 @@
|
|
||||||
|
|
||||||
datapusher_url = config.get('ckan.datapusher.url')
|
|
||||||
|
|
||||||
- site_url = h.url_for('/', qualified=True)
|
|
||||||
-
|
|
||||||
callback_url_base = config.get('ckan.datapusher.callback_url_base')
|
|
||||||
if callback_url_base:
|
|
||||||
+ site_url = callback_url_base
|
|
||||||
callback_url = urlparse.urljoin(
|
|
||||||
callback_url_base.rstrip('/'), '/api/3/action/datapusher_hook')
|
|
||||||
else:
|
|
||||||
+ site_url = h.url_for('/', qualified=True)
|
|
||||||
callback_url = h.url_for(
|
|
||||||
'/api/3/action/datapusher_hook', qualified=True)
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
--- ckan/ckan/lib/navl/dictization_functions.py 2020-10-14 10:39:46.319132692 +0200
|
|
||||||
+++ dictization_functions_unflatten_patch.py 2020-10-14 10:40:38.204657981 +0200
|
|
||||||
@@ -442,19 +442,24 @@
|
|
||||||
for flattend_key in sorted(data.keys(), key=flattened_order_key):
|
|
||||||
current_pos = unflattened
|
|
||||||
|
|
||||||
+ if (len(flattend_key) > 1
|
|
||||||
+ and not flattend_key[0] in convert_to_list
|
|
||||||
+ and not flattend_key[0] in unflattened):
|
|
||||||
+ convert_to_list.append(flattend_key[0])
|
|
||||||
+
|
|
||||||
for key in flattend_key[:-1]:
|
|
||||||
try:
|
|
||||||
current_pos = current_pos[key]
|
|
||||||
- except IndexError:
|
|
||||||
- new_pos = {}
|
|
||||||
- current_pos.append(new_pos)
|
|
||||||
- current_pos = new_pos
|
|
||||||
except KeyError:
|
|
||||||
- new_pos = []
|
|
||||||
+ new_pos = {}
|
|
||||||
current_pos[key] = new_pos
|
|
||||||
current_pos = new_pos
|
|
||||||
current_pos[flattend_key[-1]] = data[flattend_key]
|
|
||||||
|
|
||||||
+ for key in convert_to_list:
|
|
||||||
+ unflattened[key] = [unflattened[key][s]
|
|
||||||
+ for s in sorted(unflattened[key])]
|
|
||||||
+
|
|
||||||
return unflattened
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ FROM alpine:3.12 as ckanbuild
|
||||||
|
|
||||||
# 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.0
|
ENV GIT_BRANCH=ckan-2.9.1
|
||||||
|
|
||||||
# Set src dirs
|
# Set src dirs
|
||||||
ENV SRC_DIR=/srv/app/src
|
ENV SRC_DIR=/srv/app/src
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
--- ckan/ckan/lib/navl/dictization_functions.py 2020-10-14 10:45:07.519582188 +0200
|
|
||||||
+++ dictization_functions_unflatten_patch.py 2020-10-14 10:46:26.258305671 +0200
|
|
||||||
@@ -410,19 +410,24 @@
|
|
||||||
for flattend_key in sorted(data.keys(), key=flattened_order_key):
|
|
||||||
current_pos = unflattened
|
|
||||||
|
|
||||||
+ if (len(flattend_key) > 1
|
|
||||||
+ and not flattend_key[0] in convert_to_list
|
|
||||||
+ and not flattend_key[0] in unflattened):
|
|
||||||
+ convert_to_list.append(flattend_key[0])
|
|
||||||
+
|
|
||||||
for key in flattend_key[:-1]:
|
|
||||||
try:
|
|
||||||
current_pos = current_pos[key]
|
|
||||||
- except IndexError:
|
|
||||||
- new_pos = {}
|
|
||||||
- current_pos.append(new_pos)
|
|
||||||
- current_pos = new_pos
|
|
||||||
except KeyError:
|
|
||||||
- new_pos = []
|
|
||||||
+ new_pos = {}
|
|
||||||
current_pos[key] = new_pos
|
|
||||||
current_pos = new_pos
|
|
||||||
current_pos[flattend_key[-1]] = data[flattend_key]
|
|
||||||
|
|
||||||
+ for key in convert_to_list:
|
|
||||||
+ unflattened[key] = [unflattened[key][s]
|
|
||||||
+ for s in sorted(unflattened[key])]
|
|
||||||
+
|
|
||||||
return unflattened
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue