Files
opensearch-pyd/start_elasticsearch.sh
T
Nick LangandHonza Král 211ee236fb Add script to run ES in docker container (#590)
* Adding start_elasticsearch.sh script to run elastic search on the host
in a docker container at http://localhost:9200

* update readme in instructions on how to use script
2017-05-15 22:28:26 +02:00

19 lines
468 B
Bash
Executable File

#!/bin/bash
# Start elasticsearch in a docker container
ES_VERSION=${ES_VERSION:-"latest"}
ES_TEST_SERVER=${ES_TEST_SERVER:-"http://localhost:9200"}
exec docker run -d \
-e script.inline=true \
-e path.repo=/tmp \
-e "repositories.url.allowed_urls=http://*" \
-e node.attr.testattr=test \
-e ES_HOST=$ES_TEST_SERVER \
-v `pwd`/../elasticsearch:/code/elasticsearch \
-v /tmp:/tmp \
-p "9200:9200" \
fxdgear/elasticsearch:$ES_VERSION