* 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
19 lines
468 B
Bash
Executable File
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
|
|
|