diff --git a/ckan-2.11/Dockerfile b/ckan-2.11/Dockerfile index 077b156..c41a60f 100644 --- a/ckan-2.11/Dockerfile +++ b/ckan-2.11/Dockerfile @@ -30,7 +30,7 @@ ENV GIT_URL=https://github.com/ckan/ckan.git # Customize these in the environment (.env) file if needed ENV CKAN_SITE_URL=http://localhost:5000 -ENV CKAN__PLUGINS="image_view text_view datatables_view datastore xloader envvars" +ENV CKAN__PLUGINS="image_view text_view datatables_view datastore envvars" # UWSGI options ENV UWSGI_HARAKIRI=50 @@ -81,7 +81,7 @@ RUN pip3 install -U pip && \ # Install the XLoader extension RUN pip3 install -U pip && \ cd ${SRC_DIR} && \ - pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@master#egg=ckanext-xloader' && \ + pip3 install -e 'git+https://github.com/kowh-ai/ckanext-xloader.git@master#egg=ckanext-xloader' && \ pip3 install -r ckanext-xloader/requirements.txt && \ pip3 install -U requests[security] diff --git a/ckan-2.11/setup/start_ckan_development.sh b/ckan-2.11/setup/start_ckan_development.sh index ed9aeb9..0be33dc 100755 --- a/ckan-2.11/setup/start_ckan_development.sh +++ b/ckan-2.11/setup/start_ckan_development.sh @@ -6,6 +6,11 @@ if [[ $CKAN__PLUGINS == *"datapusher"* ]]; then ckan config-tool $CKAN_INI ckan.datapusher.api_token=xxx fi +if [[ $CKAN__PLUGINS == *"xloader"* ]]; then + ckan config-tool $CKAN_INI "ckanext.xloader.api_token=$(ckan -c $CKAN_INI user token add ckan_admin xloader | tail -n 1 | tr -d '\t')" + ckan config-tool $CKAN_INI ckanext.xloader.site_url=http://ckan-dev:5000 +fi + # Set debug to true echo "Enabling debug mode" ckan config-tool $CKAN_INI -s DEFAULT "debug = true"