Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kowh-ai committed Jan 14, 2025
1 parent 4a4c30e commit 61753d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan-2.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]

Expand Down
5 changes: 5 additions & 0 deletions ckan-2.11/setup/start_ckan_development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61753d5

Please sign in to comment.