Back to Testcontainers Java

Solr Container

docs/modules/solr.md

2.0.5936 B
Original Source

Solr Container

This module helps running solr using Testcontainers.

Note that it's based on the official Docker image.

Usage example

You can start a solr container instance from any Java application by using:

<!--codeinclude-->

Using a Solr container inside_block:solrContainerUsage

<!--/codeinclude-->

Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

=== "Gradle" groovy testImplementation "org.testcontainers:testcontainers-solr:{{latest_version}}" === "Maven" xml <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers-solr</artifactId> <version>{{latest_version}}</version> <scope>test</scope> </dependency>