Skip to content

Commit 8912ba9

Browse files
committed
Re-enable docker pull, to allow refreshing snapshot images
1 parent 55907a8 commit 8912ba9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.buildkite/run-elasticsearch.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ fi
8484

8585
# Pull the container, retry on failures up to 5 times with
8686
# short delays between each attempt. Fixes most transient network errors.
87-
#docker_pull_attempts=0
88-
#until [ "$docker_pull_attempts" -ge 5 ]
89-
#do
90-
# docker pull docker.elastic.co/elasticsearch/"$elasticsearch_container" && break
91-
# docker_pull_attempts=$((docker_pull_attempts+1))
92-
# echo "Failed to pull image, retrying in 10 seconds (retry $docker_pull_attempts/5)..."
93-
# sleep 10
94-
#done
87+
docker_pull_attempts=0
88+
until [ "$docker_pull_attempts" -ge 5 ]
89+
do
90+
docker pull docker.elastic.co/elasticsearch/"$elasticsearch_container" && break
91+
docker_pull_attempts=$((docker_pull_attempts+1))
92+
echo "Failed to pull image, retrying in 10 seconds (retry $docker_pull_attempts/5)..."
93+
sleep 10
94+
done
9595

9696
NUMBER_OF_NODES=${NUMBER_OF_NODES-1}
9797
http_port=9200

0 commit comments

Comments
 (0)