Skip to content

Commit

Permalink
Merge pull request #1 from dbca-wa/feature/enable-configure-extensions
Browse files Browse the repository at this point in the history
Added and configured extensions
  • Loading branch information
ben3000 authored Dec 6, 2023
2 parents 547d1f6 + 4f3de60 commit 8a5e87d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .env.dbca
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ NGINX_PORT=80
NGINX_SSLPORT=443

# Extensions
CKAN__PLUGINS="envvars image_view text_view datatables_view datastore xloader"
CKAN__PLUGINS="image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat envvars"
CKAN__VIEWS__DEFAULT_VIEWS="text_view datatables_view pdf_view"
CKAN__HARVEST__MQ__TYPE=redis
CKAN__HARVEST__MQ__HOSTNAME=redis
CKAN__HARVEST__MQ__PORT=6379
Expand Down
6 changes: 3 additions & 3 deletions ckan/docker-entrypoint.d/02_setup_dbca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ fi
# ckan -c $CKAN_INI db upgrade -p harvest
# fi

# if [[ $CKAN__PLUGINS == *"pages"* ]]; then
# ckan -c $CKAN_INI pages initdb
# fi
if [[ $CKAN__PLUGINS == *"pages"* ]]; then
ckan -c $CKAN_INI pages initdb
fi
3 changes: 3 additions & 0 deletions ckan/setup/dbca_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ pip3 install -r ${SRC_DIR}/ckanext-hierarchy/requirements.txt
# Pages
pip3 install -e git+https://github.com/ckan/[email protected]#egg=ckanext-pages

# PDF View
pip3 install -e git+https://github.com/ckan/[email protected]#egg=ckanext-pdfview

# Report
pip3 install -e git+http://github.com/ckan/ckanext-report.git@master#egg=ckanext-report
pip3 install -r ${SRC_DIR}/ckanext-report/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion src/dbca_install_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ cd src/
# Featured Views
# git clone https://github.com/dbca-wa/ckanext-featuredviews

echo "Ready to build project: ahoy build"
echo "Ready to build project: ahoy build"

0 comments on commit 8a5e87d

Please sign in to comment.