Skip to content

Commit 604477d

Browse files
author
Magnar Eivind Martinsen
committed
Added JTS library to the official docker inside the entrypoint
1 parent 99b4dde commit 604477d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,16 @@
2121
###############################################################################
2222

2323
docker 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
2530
docker_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

2835
sh -c "$docker_run"
2936

0 commit comments

Comments
 (0)