Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

Solr does not work on `starter` or `starter_dev` #305

Closed rosiel closed 2 years ago

rosiel commented 2 years ago

The Solr URL configuration is not being set.

It appears to be because the lines that do this are skipped when you're not using Islandora Defaults.

As far as I can tell, the call stack is: make starter_dev (or starter) calls (make) hydrate make hydrate calls (make) update-config-from-environment make update-config-from-environment calls configure_islandora_default_module which is a function available in the Drupal container, presumably copied from isle-buildkit/drupal/rootfs/etc/islandora/utilities.sh isle-buildkit/drupal/rootfs/etc/islandora/utilities.sh's configure_islandora_default_module does the Solr URL config.

Is the solution as simple as moving those lines to the function below, configure_search_api_solr_module?

@seth-shaw-asu @adam-vessey

seth-shaw-asu commented 2 years ago

Yeah, it appears that configure_islandora_defaults currently only sets search_api. Its actions can probably be rolled into configure_search_api_solr_module.

adam-vessey commented 2 years ago

Half-tempted to suggest making things more atomic, splitting up the functions between enabling and configuring things, as with the --existing-config it's somewhat expected that there should be no other modules enabled.

... really, might be nice to avoid changing the configuration proper with provisioned/environment specifics (as in, that which is imported/exported) in all cases by using Drupal's configuration override mechanism.

rosiel commented 2 years ago

I'm gonna make a new issue for the "avoid changes to configuration" thing.

seth-shaw-asu commented 2 years ago

@rosiel, okay to close with the merged PR?

rosiel commented 2 years ago

Nope. Needs

rosiel commented 2 years ago

relevant PR: https://github.com/Islandora-Devops/isle-dc/pull/308