Commit 8bbca8d9 authored by Yaroslav's avatar Yaroslav
Browse files

minor fixes

parent 9dc567ee
......@@ -2,4 +2,5 @@ data
var-solr
.idea
solr_gradle/.idea
solr_gradle/build/*
\ No newline at end of file
solr_gradle/.gradle
solr_gradle/build/*
......@@ -2,6 +2,7 @@ FROM gradle:6.5.1-jdk11 AS builder
# build target jar
WORKDIR /solr_gradle
COPY solr_gradle/build.gradle solr_gradle/settings.gradle ./
RUN gradle
COPY solr_gradle/src/ src/
RUN gradle jar
......@@ -13,7 +14,7 @@ RUN chown -R solr:solr /opt/solr/custom_plugins/
RUN chown -R solr:solr /opt/solr/server/solr/configsets
USER solr
COPY --chown=solr:solr demo /opt/solr/server/solr/configsets/demo
COPY --chown=solr:solr yelp /opt/solr/server/solr/configsets/yelp
COPY --from=builder --chown=solr:solr /solr_gradle/build/libs/my-fuzzy.jar /opt/solr/custom_plugins/my-fuzzy.jar
......
......@@ -15,7 +15,7 @@ fi
. /opt/docker-solr/scripts/run-initdb
/opt/docker-solr/scripts/precreate-core "suggest_documents" "/opt/solr/server/solr/configsets/demo"
/opt/docker-solr/scripts/precreate-core "yelp" "/opt/solr/server/solr/configsets/yelp"
# Provide path to custom_plugins location.
exec solr-fg -Dsolr.sharedLib=/opt/solr/custom_plugins/
......@@ -18,7 +18,7 @@ case "$1" in
# start
$0 all
# index all data (decompress on the fly and pass to index)
tar xzf data/$YELP_DATA final.json -O | curl 'http://localhost:8983/solr/demo/update?commit=true' --data-binary @- -H 'Content-type:application/json'
tar xzf data/$YELP_DATA final.json -O | curl 'http://localhost:8983/solr/yelp/update?commit=true' --data-binary @- -H 'Content-type:application/json'
else
echo "Please use ./run get-yelp to obtain yelp data"
fi
......
#Thu Aug 06 12:23:52 MSK 2020
gradle.version=6.5.1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment