소스 검색

Update "elasticsearch-basics" test to explicitly set a low memory limit (instead of the 2GB default)

Tianon Gravi 9 년 전
부모
커밋
eb2212a0e8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      test/tests/elasticsearch-basics/run.sh

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

@@ -12,7 +12,8 @@ image="$1"
 clientImage="$image"
 
 # Create an instance of the container-under-test
-cid="$(docker run -d "$image")"
+# (explicitly setting a low memory limit since the image defaults to 2GB)
+cid="$(docker run -d -e ES_JAVA_OPTS='-Xms32m -Xmx32m' "$image")"
 trap "docker rm -vf $cid > /dev/null" EXIT
 
 _request() {