Commit c512bf08 authored by Kirill's avatar Kirill
Browse files

add plugin to docker image

parent a413ca3e
......@@ -6,3 +6,9 @@
Загрузить данные в solr проект:
`curl 'http://localhost:8983/solr/demo/update?commit=true' --data-binary @/home/sasha/yelp/final.json -H 'Content-type:application/json'`
## Инструкция к run
* Собрать `./run build`
* Скачать yelp (достаточно выполнить один раз) `./run get-yelp`
* Залить данные `./run reindex-yelp`
\ No newline at end of file
version: '3'
services:
solr:
image: solr:8
build:
context: .
dockerfile: docker/Dockerfile_solr
ports:
- "8983:8983"
volumes:
- ./var-solr:/var/solr
- ./demo:/opt/solr/server/solr/configsets/demo
command: solr-precreate demo /opt/solr/server/solr/configsets/demo
\ No newline at end of file
command: init-suggest.sh
......@@ -23,6 +23,9 @@ case "$1" in
echo "Please use ./run get-yelp to obtain yelp data"
fi
;;
"build")
sudo docker-compose build
;;
"all")
sudo docker-compose down && sudo docker-compose up -d
;;
......
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