-
-
Notifications
You must be signed in to change notification settings - Fork 15
Allow use of different core name, fixes #12 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the official/capitalized name for Solr s/solr/Solr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still not capitalized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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