Skip to content

Commit 6176f77

Browse files
committed
Added the quiet parameter to docker pull and increase the retry intervel to 5s for Elasticsearch to be up
1 parent 451c651 commit 6176f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/run-elasticsearch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fi
8989
docker_pull_attempts=0
9090
until [ "$docker_pull_attempts" -ge 5 ]
9191
do
92-
docker pull docker.elastic.co/elasticsearch/"$elasticsearch_container" && break
92+
docker pull -q docker.elastic.co/elasticsearch/"$elasticsearch_container" && break
9393
docker_pull_attempts=$((docker_pull_attempts+1))
9494
echo "Failed to pull image, retrying in 10 seconds (retry $docker_pull_attempts/5)..."
9595
sleep 10
@@ -128,7 +128,7 @@ END
128128
--ulimit memlock=-1:-1 \
129129
--detach="$local_detach" \
130130
--health-cmd="curl $cert_validation_flags --fail $elasticsearch_url/_cluster/health || exit 1" \
131-
--health-interval=2s \
131+
--health-interval=5s \
132132
--health-retries=20 \
133133
--health-timeout=2s \
134134
--rm \

0 commit comments

Comments
 (0)