Skip to content

Commit 841887a

Browse files
authored
Merge branch 'main' into feat/update-compose-container
2 parents d256f3b + 80ae5d7 commit 841887a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/modules/solr.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Solr Container
22

3-
!!! note
4-
This module is INCUBATING. While it is ready for use and operational in the current version of Testcontainers, it is possible that it may receive breaking changes in the future. See [our contributing guidelines](/contributing/#incubating-modules) for more information on our incubating modules policy.
5-
6-
7-
This module helps running [solr](https://lucene.apache.org/solr/) using Testcontainers.
3+
This module helps running [solr](https://solr.apache.org/) using Testcontainers.
84

95
Note that it's based on the [official Docker image](https://hub.docker.com/_/solr/).
106

modules/solr/src/main/java/org/testcontainers/containers/SolrContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected void configure() {
111111
throw new IllegalStateException("Solr needs to have a configuration if you want to use a schema");
112112
}
113113
// Generate Command Builder
114-
String command = "solr -f";
114+
String command = "solr start -f";
115115
// Add Default Ports
116116
this.addExposedPort(SOLR_PORT);
117117

@@ -143,7 +143,7 @@ protected void waitUntilContainerStarted() {
143143
@SneakyThrows
144144
protected void containerIsStarted(InspectContainerResponse containerInfo) {
145145
if (!configuration.isZookeeper()) {
146-
ExecResult result = execInContainer("solr", "create_core", "-c", configuration.getCollectionName());
146+
ExecResult result = execInContainer("solr", "create", "-c", configuration.getCollectionName());
147147
if (result.getExitCode() != 0) {
148148
throw new IllegalStateException(
149149
"Unable to create solr core:\nStdout: " + result.getStdout() + "\nStderr:" + result.getStderr()

0 commit comments

Comments
 (0)