diff --git a/.env.dbca b/.env.dbca index e1f5b74f..10d77393 100644 --- a/.env.dbca +++ b/.env.dbca @@ -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 diff --git a/ckan/docker-entrypoint.d/02_setup_dbca.sh b/ckan/docker-entrypoint.d/02_setup_dbca.sh index ac828e3b..eb5cb320 100644 --- a/ckan/docker-entrypoint.d/02_setup_dbca.sh +++ b/ckan/docker-entrypoint.d/02_setup_dbca.sh @@ -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 \ No newline at end of file +if [[ $CKAN__PLUGINS == *"pages"* ]]; then + ckan -c $CKAN_INI pages initdb +fi \ No newline at end of file diff --git a/ckan/setup/dbca_requirements.sh b/ckan/setup/dbca_requirements.sh index b93b8f97..9ffcbe63 100644 --- a/ckan/setup/dbca_requirements.sh +++ b/ckan/setup/dbca_requirements.sh @@ -20,6 +20,9 @@ pip3 install -r ${SRC_DIR}/ckanext-hierarchy/requirements.txt # Pages pip3 install -e git+https://github.com/ckan/ckanext-pages.git@v0.5.2#egg=ckanext-pages +# PDF View +pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#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 diff --git a/src/dbca_install_extensions.sh b/src/dbca_install_extensions.sh index c9e94cea..3538b477 100644 --- a/src/dbca_install_extensions.sh +++ b/src/dbca_install_extensions.sh @@ -24,4 +24,4 @@ cd src/ # Featured Views # git clone https://github.com/dbca-wa/ckanext-featuredviews -echo "Ready to build project: ahoy build" \ No newline at end of file +echo "Ready to build project: ahoy build"