feat: Initialize DOI database in entrypoint script

Add DOI database initialization command to the CKAN entrypoint script.
This ensures the DOI database is set up correctly during container start-up.
This commit is contained in:
Maicol Battistini 2024-10-09 14:01:06 +02:00
parent 0ee1472465
commit 0294a9a194
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -83,6 +83,10 @@ ckan config-tool $CKAN_INI \
"ckanext.pages.group_menu=$CKANEXT__PAGES__GROUP_MENU" \ "ckanext.pages.group_menu=$CKANEXT__PAGES__GROUP_MENU" \
"ckanext.pages.organization_menu=$CKANEXT__PAGES__ORGANIZATION_MENU" "ckanext.pages.organization_menu=$CKANEXT__PAGES__ORGANIZATION_MENU"
# ckanext-pages: Add pages CKAN config file
echo "[docker-entrypoint.01_setup_ckanext_config] Initialization DOI database"
ckan -c $CKAN_INI doi initdb
# Rebuild index # Rebuild index
echo "[docker-entrypoint.01_setup_ckanext_config] Rebuild index" echo "[docker-entrypoint.01_setup_ckanext_config] Rebuild index"
ckan -c $CKAN_INI search-index rebuild ckan -c $CKAN_INI search-index rebuild