From acc0f7810f97e47bb1086b5f6cb6c6d22e18ffc9 Mon Sep 17 00:00:00 2001 From: Sebastian Hofmann Date: Fri, 11 Oct 2024 17:36:35 +0200 Subject: [PATCH] MIR-1360 fix zookeeper is hardcoded in mir solr docker container --- mir-webapp/src/main/solr/docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mir-webapp/src/main/solr/docker-entrypoint.sh b/mir-webapp/src/main/solr/docker-entrypoint.sh index 3fff5f5c4d..bc93b9afc3 100644 --- a/mir-webapp/src/main/solr/docker-entrypoint.sh +++ b/mir-webapp/src/main/solr/docker-entrypoint.sh @@ -104,5 +104,6 @@ echo " }" >> $secruity_json echo " }" >> $secruity_json echo "}" >> $secruity_json -(/opt/solr/docker/scripts/wait-for-solr.sh;/opt/solr/bin/solr zk cp $secruity_json zk:security.json -z localhost:9983)& +ZK_HOST=${ZK_HOST:-localhost:9983} +(/opt/solr/docker/scripts/wait-for-solr.sh;/opt/solr/bin/solr zk cp $secruity_json zk:security.json -z "$ZK_HOST")& /opt/solr/docker/scripts/solr-foreground -c;