We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08e0bbe + 94ebf85 commit f8dbb11Copy full SHA for f8dbb11
test_elasticsearch/start_elasticsearch.sh
@@ -5,12 +5,14 @@
5
ES_VERSION=${ES_VERSION:-"6.1.3"}
6
ES_TEST_SERVER=${ES_TEST_SERVER:-"http://localhost:9200"}
7
8
+SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
9
+
10
exec docker run -d \
11
-e path.repo=/tmp \
12
-e "repositories.url.allowed_urls=http://*" \
13
-e node.attr.testattr=test \
14
-e ES_HOST=$ES_TEST_SERVER \
- -v `pwd`/../elasticsearch:/code/elasticsearch \
15
+ -v $SOURCE_DIR/../elasticsearch:/code/elasticsearch \
16
-v /tmp:/tmp \
17
-p "9200:9200" \
18
docker.elastic.co/elasticsearch/elasticsearch-oss:$ES_VERSION
0 commit comments