diff --git a/.env.example b/.env.example index 5ee1e44..f065fa7 100644 --- a/.env.example +++ b/.env.example @@ -80,6 +80,7 @@ CKAN_SITE_ID=default CKAN_SITE_URL=http://localhost CKAN__ROOT_PATH=/catalog/{{LANG}} CKAN_PORT=5000 +CKAN__FAVICON=/catalog/base/images/ckan.ico CKAN___BEAKER__SESSION__SECRET=CHANGE_ME # See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings 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__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_FACET_LIST="theme theme_es dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to " \ No newline at end of file diff --git a/ckan/Dockerfile b/ckan/Dockerfile index bce513a..8a00496 100644 --- a/ckan/Dockerfile +++ b/ckan/Dockerfile @@ -4,23 +4,26 @@ FROM ghcr.io/mjanez/ckan-base-spatial:ckan-2.9.9 ENV APP_DIR=/srv/app \ TZ=UTC +# requirements.txt files fixed until next releases +COPY req_fixes ${APP_DIR}/req_fixes + # Extensions -### XLoader - v0.12.2 ### +### XLoader - 1.0.1 ### ### Harvester - v1.5.1 ### ### Geoview - v0.0.20 ### -### Spatial - v2.0.0 ### +### Spatial - v2.0.0 ### fixed requirements.txt ### DCAT - 1.0.0-geodcatap (GeoDCAT-AP extended version) ### ### Scheming - 1.1.0-geodcatap (GeoDCAT-AP extended version) ### ### Resource dictionary - 1.0.1 ### -### Pages - v0.5.1 ### -### PDFView - v0.0.8 ### +### Pages - v0.5.2 ### +### PDFView - 0.0.8 ### ### Facet Scheming - 1.0.1 ### ### SPARQL Interface - 2.0.1 ### RUN echo ${TZ} > /etc/timezone && \ if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then cp /usr/share/zoneinfo/${TZ} /etc/localtime ; fi && \ # Install CKAN extensions 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 -U requests[security] && \ 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' && \ echo "ckan/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)" && \ 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 && \ @@ -39,7 +42,7 @@ RUN echo ${TZ} > /etc/timezone && \ echo "mjanez/ckanext-resourcedictionary" && \ pip3 install -e 'git+https://github.com/mjanez/ckanext-resourcedictionary.git@1.0.1#egg=ckanext-resourcedictionary' && \ 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" && \ pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview && \ echo "OpenDataGIS/ckanext-facet_scheming" && \ diff --git a/ckan/req_fixes/ckanext-spatial_requirements.txt b/ckan/req_fixes/ckanext-spatial_requirements.txt new file mode 100644 index 0000000..49be23e --- /dev/null +++ b/ckan/req_fixes/ckanext-spatial_requirements.txt @@ -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 \ No newline at end of file