Skip to content

Commit

Permalink
Enabled activity plugin and activity_streams_email_notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Feb 21, 2024
1 parent a5f9398 commit be5ffe3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ckan/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ ARG CKAN_IMAGE
FROM ${CKAN_IMAGE}

# Override the default CKAN config plugins to only use the ones we need for the worker
ENV CKAN__PLUGINS="dbca datastore xloader scheming_datasets qa archiver report envvars"
ENV CKAN__PLUGINS="dbca activity datastore xloader scheming_datasets qa archiver report envvars"
RUN ckan config-tool $CKAN_INI "ckan.plugins = ${CKAN__PLUGINS}"
ENV CKAN_SITE_URL=http://localhost:5000

# Install logrotate
RUN apk add logrotate
Expand Down
17 changes: 16 additions & 1 deletion ckan/config/dbca.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use = config:/srv/app/ckan.ini
ckan.devserver.watch_patterns = /srv/app/ckan.ini

## Plugins Settings ############################################################
ckan.plugins = dbca image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat scheming_datasets spatial_metadata spatial_query doi qa archiver report resource_proxy geo_view shp_view officedocs_view envvars
ckan.plugins = dbca activity image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat scheming_datasets spatial_metadata spatial_query doi qa archiver report resource_proxy geo_view shp_view officedocs_view envvars

## Resource Views Settings #####################################################
ckan.views.default_views = text_view datatables_view pdf_view geo_view shp_view officedocs_view
Expand All @@ -26,6 +26,10 @@ ckan.auth.user_create_organizations = false
ckan.auth.user_delete_groups = false
ckan.auth.user_delete_organizations = false

## Activity Streams Settings ###################################################
ckan.activity_streams_email_notifications = true


## CKAN Extensions configuration ###############################################

# ckanext-spatial
Expand Down Expand Up @@ -57,6 +61,17 @@ ckanext-archiver.cache_url_root=/resource_cache/
# ckanext-qa
ckanext.qa.qsv_bin=/usr/local/bin/qsv

# ckanext-dbca
ckanext.dbca.spatial_data_path = /srv/app/spatial_data
ckanext.dbca.spatial_data_mappings =
{
"ibra.geojson": {"layer": "IBRA Regions", "code":"IWA_REG_CODE_7", "name":"IWA_REG_NAME_7"},
"ibra-sub.geojson": {"layer": "IBRA Subregions)", "code":"IWA_SUB_CODE_7", "name":"IWA_SUB_NAME_7"},
"imcra.geojson": {"layer": "IMCRA Regions", "code": "MESO_ABBR", "name":"MESO_NAME"},
"lga-wa.geojson": {"layer": " Local Government Areas", "code":"LGA_TYPE", "name":"LGA_LGA_NAME"},
"tenure.geojson": {"layer": "DBCA Managed Tenure", "code":"LEG_TENURE", "name":"LEG_NAME"}
}


## Logging configuration
[loggers]
Expand Down
4 changes: 3 additions & 1 deletion ckan/setup/dbca_ckan_cron_jobs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
# 8am task to schedule embargo datasets to public visibility
0 8 * * * /usr/bin/ckan -c /srv/app/config/dbca.ini dbca scheduled_datasets
# Midnight report generation for archiver broken links
0 0 * * * /usr/bin/ckan -c /srv/app/config/dbca.ini report generate
0 0 * * * /usr/bin/ckan -c /srv/app/config/dbca.ini report generate
# 8am task to send CKAN email notifications
0 8 * * * /usr/bin/ckan -c /srv/app/config/dbca.ini notify send_emails
2 changes: 1 addition & 1 deletion ckan/setup/dbca_start_ckan.sh.override
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ then
done
fi

# Revert back touse DBCA config file
# Revert back to use DBCA config file
export CKAN_INI=$APP_DIR/config/dbca.ini

if [ $? -eq 0 ]
Expand Down

0 comments on commit be5ffe3

Please sign in to comment.