Module
Solr
Testcontainers version
1.20.4
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
I tried to run Solr 9.7.0 via the SolrContainer integration with solr.withZookeeper(true). However this failed to start, showing only the usage output:
Starting Solr
Usage: solr start [-f] [-c] [--host host] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [-s solr.solr.home] [-t solr.data.home] [-a "additional-options"] [-V]
…
--host <host> Specify the hostname for this Solr instance
Turns out that Solr changed the format of start parameters to the commonly used --: https://issues.apache.org/jira/browse/SOLR-16824
Starting with -DzkRun --host localhost instead of -DzkRun -h localhost works great, so I thought of setting solr.setCommand("-DzkRun", "--host", "localhost"); to overwrite the args defined here, however this doesn't seem to work.
Would be great if Solr 9.7.0 could be used with embedded Zookeeper within testcontainers 🙂
Relevant log output
Additional Information
No response
Module
Solr
Testcontainers version
1.20.4
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
I tried to run Solr 9.7.0 via the
SolrContainerintegration withsolr.withZookeeper(true). However this failed to start, showing only the usage output:Turns out that Solr changed the format of start parameters to the commonly used
--: https://issues.apache.org/jira/browse/SOLR-16824Starting with
-DzkRun --host localhostinstead of-DzkRun -h localhostworks great, so I thought of settingsolr.setCommand("-DzkRun", "--host", "localhost");to overwrite the args defined here, however this doesn't seem to work.Would be great if Solr 9.7.0 could be used with embedded Zookeeper within testcontainers 🙂
Relevant log output
Additional Information
No response