Skip to content
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

Change to a specific version of Solr? #44

Open
aasarava opened this issue Jul 22, 2024 · 7 comments
Open

Change to a specific version of Solr? #44

aasarava opened this issue Jul 22, 2024 · 7 comments

Comments

@aasarava
Copy link

How do I change the solr version? It looks like it's loading solr:9.6 in solr/Dockerfile. Changing that to solr:8.3.11 and restarting ddev results in a container unavailable error. Thanks!

@stasadev
Copy link
Member

ddev get --remove ddev/ddev-solr
ddev get ddev/ddev-solr --version 0.2.2

https://github.com/ddev/ddev-solr/tree/0.2.2 is the last release with Solr 8.

A comparison of what has changed since then 0.2.2...main

@aasarava
Copy link
Author

Perfect -- thanks for the incredibly quick response!

@mkalkbrenner
Copy link
Collaborator

Even if the response was fast, I think it is the wrong answer. You don't want a different version of the ddev plugin, but a different Solr version.

@aasarava modifiying the docker file is the correct way. But you also have to remove the already existing Solr docker volume for that downgrade.

Unfortunately, ddev doesn't support handling different versions. @rfay that's still the case, right?

@stasadev
Copy link
Member

Even if the response was fast, I think it is the wrong answer. You don't want a different version of the ddev plugin, but a different Solr version.

Ok, I thought the config for Solr 9 was incompatible with Solr 8.

Unfortunately, ddev doesn't support handling different versions.

I have a draft PR for this, and I'll try to finish it before the next release of DDEV:

@rfay
Copy link
Member

rfay commented Jul 24, 2024

Sorry I lost track of this. I think @stasadev had a valid answer by saying to use an old version of the add-on.

was solr:8. but going back to an old version is an ugly way to do it.

Probably what needs to be done if this is a common requirement (maybe it is) is to add an ARG to the Dockerfile, and add the args to the docker-compose.solr.yaml build section, so that the solr image can be selected from inside the docker-compose.*.yaml.

@mkalkbrenner
Copy link
Collaborator

Some thoughts:

  • I can't recommend to go back to an older version of the ddev plugin because you'll miss some important fixes
  • the ddev plugin itself should basically be working with any Solr version from 8 to 10
  • the security.json might need to by adjusted if it contains stuff that is not available in an older Solr version
  • if you change the Solr version in an existing project, the Solr docker volume should be deleted

@aasarava
Copy link
Author

Thanks, all. Yes, going back to an older version of the plugin is not ideal, but I appreciated the ability to quickly get Solr 8 up and running locally.

Being able to configure the Solr version would be great. The use case is simulating environments for sites hosted on Pantheon and Acquia, both of which use Solr 8.11.3 at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants