Conversation
|
@rfay, I wonder how to test the work in a branch. I've tried: $ ddev get https://github.com/drud/ddev-drupal9-solr/tree/20221230_config_corenamebut it doesn't work EDIT: Sorry, only now I saw the tarball URL :) |
claudiu-cristea
left a comment
There was a problem hiding this comment.
Tested and works as expected. Just a nit regarding the Solr name spelling
README.md
Outdated
|
|
||
| * It installs a [`.ddev/docker-compose.solr.yaml`](docker-compose.solr.yaml) using the solr:8 docker image. | ||
| * A standard Drupal 9 solr configuration is included in [.ddev/solr/conf](solr/conf). | ||
| * A standard Drupal 9+ solr configuration is included in [.ddev/solr/conf](solr/conf). |
There was a problem hiding this comment.
I think we should use the official/capitalized name for Solr s/solr/Solr
There was a problem hiding this comment.
There was a problem hiding this comment.
@rfay, my remark was only for that occurrence, in the line that was already touched in this PR. I didn't suggest to replace all occurrences. Sorry for any trouble. But true, I'm often forgetting the "suggest" tool.
|
@claudiu-cristea thanks for reviewing, I need to ask you to do it again. I changed the approach so one can do a To review
|
There was a problem hiding this comment.
It works correctly by overriding env vars in docker-compose.solr-env.yaml. I've also run:
docker-compose -f ./.ddev/.ddev-docker-compose-full.yaml config solr...(BTW, I've missed a ddev docker-compose-config command to wrap docker-compose config) to make sure the env vars are merged correctly and the vars section looks good:
services:
solr:
...
environment:
HTTP_EXPOSE: 8983:8983
SOLR_CORENAME: somecorename
VIRTUAL_HOST: joinup.ddev.site
This looks good to go. Thank you!
|
Thanks so much @claudiu-cristea - since you use this your care for it is appreciated. There's still a need for getting @mkalkbrenner's preferred technique into (another) add-on. based on ddev/ddev-contrib#195 |

This makes it easier to use a different core name.
From the updated README:
If you want to use a core name other than the default "dev", edit
docker-compose.solr.yamltoenvironment:section.You can test this PR with
https://github.com/rfay/ddev-drupal9-solr/tarball/20221230_config_corename