Browse Source

Disable "bootstrap checks" in Elasticsearch tests

Relates:
https://github.com/docker-library/logstash/issues/93#issuecomment-438075913

Co-authored-by: Michelle Sausa <[email protected]>
Toby McLaughlin 7 years ago
parent
commit
aed62e5f7a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/tests/elasticsearch-basics/run.sh

+ 2 - 1
test/tests/elasticsearch-basics/run.sh

@@ -13,7 +13,8 @@ clientImage='buildpack-deps:stretch-curl'
 
 # Create an instance of the container-under-test
 # (explicitly setting a low memory limit since the image defaults to 2GB)
-cid="$(docker run -d -e ES_JAVA_OPTS='-Xms128m -Xmx128m' "$image")"
+# (disable "bootstrap checks" by setting discovery.type option)
+cid="$(docker run -d -e ES_JAVA_OPTS='-Xms128m -Xmx128m' -e discovery.type=single-node "$image")"
 trap "docker rm -vf $cid > /dev/null" EXIT
 
 _request() {