feat: 🛠️ update CKAN plugins configuration
Add new CKAN plugins to the configuration and remove duplicated plugin assignment in Dockerfile. This change ensures that all required plugins are correctly listed and managed through environment variables.
This commit is contained in:
parent
a9b07096a7
commit
eb80cde2a8
|
@ -17,7 +17,7 @@ CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
|
||||||
CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME
|
CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME
|
||||||
CKAN___API_TOKEN__JWT__DECODE__SECRET=string:CHANGE_ME
|
CKAN___API_TOKEN__JWT__DECODE__SECRET=string:CHANGE_ME
|
||||||
# CKAN Plugins
|
# CKAN Plugins
|
||||||
#CKAN__PLUGINS="envvars image_view text_view datatables_view datastore datapusher spatial_metadata spatial_query d4science d4science_theme"
|
CKAN__PLUGINS="envvars tracking image_view text_view datatables_view datastore datapusher spatial_metadata spatial_query harvest ckan_harvester googleanalytics dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface structured_data d4science d4science_theme"
|
||||||
# CKAN requires storage path to be set in order for filestore to be enabled
|
# CKAN requires storage path to be set in order for filestore to be enabled
|
||||||
CKAN__STORAGE_PATH=/srv/app/data
|
CKAN__STORAGE_PATH=/srv/app/data
|
||||||
CKAN__WEBASSETS__PATH=/srv/app/data/webassets
|
CKAN__WEBASSETS__PATH=/srv/app/data/webassets
|
||||||
|
|
|
@ -15,9 +15,6 @@ USER root
|
||||||
############
|
############
|
||||||
FROM d4science/ckan:2.11.0-focal
|
FROM d4science/ckan:2.11.0-focal
|
||||||
|
|
||||||
# Add the custom extensions to the plugins list
|
|
||||||
ENV CKAN__PLUGINS="envvars tracking image_view text_view datatables_view datastore datapusher spatial_metadata spatial_query harvest ckan_harvester googleanalytics dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface structured_data d4science d4science_theme"
|
|
||||||
|
|
||||||
# Switch to the root user
|
# Switch to the root user
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@ -30,8 +27,7 @@ COPY extensions-requirements.txt /srv/app/extensions-requirements.txt
|
||||||
RUN pip install -r /srv/app/extensions-requirements.txt
|
RUN pip install -r /srv/app/extensions-requirements.txt
|
||||||
|
|
||||||
|
|
||||||
RUN ckan config-tool ${APP_DIR}/production.ini "ckan.plugins = ${CKAN__PLUGINS}" && \
|
RUN chown -R ckan:ckan /srv/app
|
||||||
chown -R ckan:ckan /srv/app
|
|
||||||
|
|
||||||
# Remove wheels
|
# Remove wheels
|
||||||
RUN rm -rf /srv/app/ext_wheels
|
RUN rm -rf /srv/app/ext_wheels
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
declare -A config_values=(
|
declare -A config_values=(
|
||||||
|
["ckan.plugins"]="${CKAN__PLUGINS}"
|
||||||
["ckanext.spatial.common_map.type"]="Stadia.StamenTerrain"
|
["ckanext.spatial.common_map.type"]="Stadia.StamenTerrain"
|
||||||
["ckanext.spatial.common_map.max_zoom"]="18"
|
["ckanext.spatial.common_map.max_zoom"]="18"
|
||||||
["ckanext.spatial.search_backend"]="solr-spatial-field"
|
["ckanext.spatial.search_backend"]="solr-spatial-field"
|
||||||
|
|
Loading…
Reference in New Issue