Update Dockerfile.dev

- Use stable 2.9.7
- Add plugins
This commit is contained in:
mjanez 2023-03-22 09:54:02 +00:00 committed by GitHub
parent 4985c8befc
commit bb48c03341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 16 deletions

View File

@ -1,4 +1,4 @@
FROM ckan/ckan-base:ckan-2.10.0-dev
FROM ckan/ckan-base:2.9.7-dev
# Set up environment variables
ENV APP_DIR=/srv/app
@ -11,7 +11,7 @@ RUN apk add geos-dev proj proj-util proj-dev
# Make sure both files are not exactly the same
RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \
cp /usr/share/zoneinfo/${TZ} /etc/localtime ;\
cp /usr/share/zoneinfo/${TZ} /etc/localtime ;\
fi ;
# Install any extensions needed by your CKAN instance
@ -31,9 +31,9 @@ RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \
###TODO: XLoader ###
#RUN pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@master#egg=ckanext-xloader' && \
# pip3 install -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \
# pip3 install -U requests[security]
RUN pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@master#egg=ckanext-xloader' && \
pip3 install -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \
pip3 install -U requests[security]
### Harvester ###
RUN echo "ckan/ckanext-harvester" && \
@ -58,12 +58,7 @@ RUN echo "ckan/ckanext-spatial" && \
### Scheming-GeoDCAT-AP extended version ###
RUN echo "mjanez/ckanext-scheming (GeoDCAT-AP extended version)" && \
pip3 install -e git+https://github.com/mjanez/ckanext-scheming.git#egg=ckanext-scheming && \
# update CKAN config with ckanext-scheming parameters
ckan config-tool ${CKAN_INI} "scheming.dataset_schemas=''" && \
ckan config-tool ${CKAN_INI} "scheming.group_schemas=''" && \
ckan config-tool ${CKAN_INI} "scheming.organization_schemas=''" && \
ckan config-tool ${CKAN_INI} "scheming.presets=''"
pip3 install -e git+https://github.com/mjanez/ckanext-scheming.git#egg=ckanext-scheming
### Pages ###
RUN echo "ckan/ckanext-pages" && \
@ -78,6 +73,16 @@ RUN echo "mjanez/ckanext-dcat (GeoDCAT-AP extended version)" && \
pip3 install -e git+https://github.com/mjanez/ckanext-dcat.git#egg=ckanext-dcat && \
pip3 install -r https://raw.githubusercontent.com/mjanez/ckanext-dcat/master/requirements.txt
###TODO: ckanext-visualize
#https://github.com/keitaroinc/ckanext-visualize
###TODO datapreview error
# 2023-03-19 12:54:42,311 WARNI [ckan.lib.datapreview] Plugin for view t could not be found
# 2023-03-19 12:54:42,313 WARNI [ckan.lib.datapreview] Plugin for view e could not be found
# 2023-03-19 12:54:42,314 WARNI [ckan.lib.datapreview] Plugin for view x could not be found
# 2023-03-19 12:54:42,315 WARNI [ckan.lib.datapreview] Plugin for view t could not be found
# https://github.com/ckan/ckan/search?q=datapreview&type=issues
# ###TODO: SPARQL Interface - Adapt to Py3###
# RUN echo "mjanez/sparql (Fixed version)" && \
# pip3 install -e git+https://github.com/mjanez/ckanext-sparql.git#egg=ckanext-sparql && \
@ -97,9 +102,9 @@ COPY docker-entrypoint.d/* /docker-entrypoint.d/
COPY patches ${APP_DIR}/patches
RUN for d in $APP_DIR/patches/*; do \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
done ; \
fi ; \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
done ; \
fi ; \
done