瀏覽代碼

Merge pull request #5064 from jarpy/elasticsearch-no-bootstrap-checks

Disable "bootstrap checks" in Elasticsearch tests
Tianon Gravi 7 年之前
父節點
當前提交
88afb32c1a
共有 1 個文件被更改,包括 2 次插入1 次删除
  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() {