Update & Fix extensions

This commit is contained in:
mjanez 2023-07-20 11:19:53 +00:00 committed by GitHub
parent d9b40cdab3
commit 3d3bb36a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 11 deletions

View File

@ -80,6 +80,7 @@ CKAN_SITE_ID=default
CKAN_SITE_URL=http://localhost CKAN_SITE_URL=http://localhost
CKAN__ROOT_PATH=/catalog/{{LANG}} CKAN__ROOT_PATH=/catalog/{{LANG}}
CKAN_PORT=5000 CKAN_PORT=5000
CKAN__FAVICON=/catalog/base/images/ckan.ico
CKAN___BEAKER__SESSION__SECRET=CHANGE_ME CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
# See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings # See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings
CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME
@ -149,9 +150,5 @@ CKANEXT__GEOVIEW__OL_VIEWER__FORMATS="wms wfs geojson gml kml"
CKANEXT__GEOVIEW__SHP_VIEWER__SRID=3857 CKANEXT__GEOVIEW__SHP_VIEWER__SRID=3857
CKANEXT__GEOVIEW__SHP_VIEWER__ENCODING=UTF-8 CKANEXT__GEOVIEW__SHP_VIEWER__ENCODING=UTF-8
# ckanext-sparql_interface
CKANEXT__SPARQL__ENDPOINT_URL=http://dbpedia.org/sparql
CKANEXT__SPARQL__HIDE_ENDPOINT_URL=False
# ckanext-facet_scheming # ckanext-facet_scheming
CKANEXT__FACET_FACET_LIST="theme theme_es dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to " CKANEXT__FACET_FACET_LIST="theme theme_es dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to "

View File

@ -4,23 +4,26 @@ FROM ghcr.io/mjanez/ckan-base-spatial:ckan-2.9.9
ENV APP_DIR=/srv/app \ ENV APP_DIR=/srv/app \
TZ=UTC TZ=UTC
# requirements.txt files fixed until next releases
COPY req_fixes ${APP_DIR}/req_fixes
# Extensions # Extensions
### XLoader - v0.12.2 ### ### XLoader - 1.0.1 ###
### Harvester - v1.5.1 ### ### Harvester - v1.5.1 ###
### Geoview - v0.0.20 ### ### Geoview - v0.0.20 ###
### Spatial - v2.0.0 ### ### Spatial - v2.0.0 ### fixed requirements.txt
### DCAT - 1.0.0-geodcatap (GeoDCAT-AP extended version) ### ### DCAT - 1.0.0-geodcatap (GeoDCAT-AP extended version) ###
### Scheming - 1.1.0-geodcatap (GeoDCAT-AP extended version) ### ### Scheming - 1.1.0-geodcatap (GeoDCAT-AP extended version) ###
### Resource dictionary - 1.0.1 ### ### Resource dictionary - 1.0.1 ###
### Pages - v0.5.1 ### ### Pages - v0.5.2 ###
### PDFView - v0.0.8 ### ### PDFView - 0.0.8 ###
### Facet Scheming - 1.0.1 ### ### Facet Scheming - 1.0.1 ###
### SPARQL Interface - 2.0.1 ### ### SPARQL Interface - 2.0.1 ###
RUN echo ${TZ} > /etc/timezone && \ RUN echo ${TZ} > /etc/timezone && \
if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then cp /usr/share/zoneinfo/${TZ} /etc/localtime ; fi && \ if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then cp /usr/share/zoneinfo/${TZ} /etc/localtime ; fi && \
# Install CKAN extensions # Install CKAN extensions
echo "ckan/ckanext-xloader" && \ echo "ckan/ckanext-xloader" && \
pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@0.12.2#egg=ckanext-xloader' && \ pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@1.0.1#egg=ckanext-xloader' && \
pip3 install -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \ pip3 install -r ${APP_DIR}/src/ckanext-xloader/requirements.txt && \
pip3 install -U requests[security] && \ pip3 install -U requests[security] && \
echo "ckan/ckanext-harvest" && \ echo "ckan/ckanext-harvest" && \
@ -30,7 +33,7 @@ RUN echo ${TZ} > /etc/timezone && \
pip3 install -e 'git+https://github.com/ckan/ckanext-geoview.git@v0.0.20#egg=ckanext-geoview' && \ pip3 install -e 'git+https://github.com/ckan/ckanext-geoview.git@v0.0.20#egg=ckanext-geoview' && \
echo "ckan/ckanext-spatial" && \ echo "ckan/ckanext-spatial" && \
pip3 install -e 'git+https://github.com/ckan/ckanext-spatial.git@v2.0.0#egg=ckanext-spatial' && \ pip3 install -e 'git+https://github.com/ckan/ckanext-spatial.git@v2.0.0#egg=ckanext-spatial' && \
pip3 install -r https://raw.githubusercontent.com/ckan/ckanext-spatial/bae9290395b252ee8e40056256fa694569d1d78b/requirements.txt && \ pip3 install -r ${APP_DIR}/req_fixes/ckanext-spatial_requirements.txt && \
echo "mjanez/ckanext-dcat (GeoDCAT-AP extended version)" && \ echo "mjanez/ckanext-dcat (GeoDCAT-AP extended version)" && \
pip3 install -e git+https://github.com/mjanez/ckanext-dcat.git@1.0.0-geodcatap#egg=ckanext-dcat && \ pip3 install -e git+https://github.com/mjanez/ckanext-dcat.git@1.0.0-geodcatap#egg=ckanext-dcat && \
pip3 install -r https://raw.githubusercontent.com/mjanez/ckanext-dcat/master/requirements.txt && \ pip3 install -r https://raw.githubusercontent.com/mjanez/ckanext-dcat/master/requirements.txt && \
@ -39,7 +42,7 @@ RUN echo ${TZ} > /etc/timezone && \
echo "mjanez/ckanext-resourcedictionary" && \ echo "mjanez/ckanext-resourcedictionary" && \
pip3 install -e 'git+https://github.com/mjanez/ckanext-resourcedictionary.git@1.0.1#egg=ckanext-resourcedictionary' && \ pip3 install -e 'git+https://github.com/mjanez/ckanext-resourcedictionary.git@1.0.1#egg=ckanext-resourcedictionary' && \
echo "ckan/ckanext-pages" && \ echo "ckan/ckanext-pages" && \
pip3 install -e git+https://github.com/ckan/ckanext-pages.git@v0.5.1#egg=ckanext-pages && \ pip3 install -e git+https://github.com/ckan/ckanext-pages.git@v0.5.2#egg=ckanext-pages && \
echo "ckan/ckanext-pdfview" && \ echo "ckan/ckanext-pdfview" && \
pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview && \ pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview && \
echo "OpenDataGIS/ckanext-facet_scheming" && \ echo "OpenDataGIS/ckanext-facet_scheming" && \

View File

@ -0,0 +1,14 @@
ckantoolkit
lxml>=2.3
argparse
pyparsing>=2.1.10
requests>=1.1.0
six
# requirements pyproj tempfix: https://github.com/pyproj4/pyproj/issues/1321
pyproj==2.6.1; python_version < '3.9'
pyproj @ git+https://github.com/pyproj4/pyproj.git@main; python_version >= '3.9'
Shapely==2.0.1
OWSLib==0.28.1
geojson==3.0.1