File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121# ##############################################################################
2222
2323docker network create solr
24+ # Download the latest JTS library (version 1.20.0)
25+ JTS_DOWNLOAD_URL=" https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/1.20.0/jts-core-1.20.0.jar"
26+ JTS_JAR_PATH=" /tmp/jts-core.jar"
27+ curl -L -o $JTS_JAR_PATH $JTS_DOWNLOAD_URL
2428
29+ # Define the docker run command with volume mounting for the JTS library
2530docker_run=" docker run"
26- docker_run=" $docker_run --name solr1 --network solr -d -p $INPUT_HOST_PORT :$INPUT_CONTAINER_PORT solr:$INPUT_SOLR_VERSION solr-precreate test"
31+ docker_run=" $docker_run --name solr1 --network solr -d -p $INPUT_HOST_PORT :$INPUT_CONTAINER_PORT "
32+ docker_run=" $docker_run -v $JTS_JAR_PATH :/opt/solr/server/solr-webapp/webapp/WEB-INF/lib/jts-core.jar"
33+ docker_run=" $docker_run solr:$INPUT_SOLR_VERSION solr-precreate test"
2734
2835sh -c " $docker_run "
2936
You can’t perform that action at this time.
0 commit comments