Skip to content

Commit

Permalink
[8.x] [CI] Add timeouts for retries for docker image build (#195915) (#…
Browse files Browse the repository at this point in the history
…196108)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[CI] Add timeouts for retries for docker image build
(#195915)](#195915)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-14T10:57:07Z","message":"[CI]
Add timeouts for retries for docker image build (#195915)\n\n##
Summary\r\nThe generated version of the docker image builder script
didn't have\r\ntimeouts between retries, so a temporary outage on
`docker.elastic.co`\r\nwould cause a docker pull error, failing the
build
(see:\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4845#01927b40-43f9-471e-9e2c-407320fac978)\r\n\r\nThis
PR adds a fix 15s per retry to the docker build
runner.","sha":"1bd81449242a1ab57e82c211808753e82f25c92c","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-major","ci:build-cloud-image"],"title":"[CI]
Add timeouts for retries for docker image
build","number":195915,"url":"https://github.com/elastic/kibana/pull/195915","mergeCommit":{"message":"[CI]
Add timeouts for retries for docker image build (#195915)\n\n##
Summary\r\nThe generated version of the docker image builder script
didn't have\r\ntimeouts between retries, so a temporary outage on
`docker.elastic.co`\r\nwould cause a docker pull error, failing the
build
(see:\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4845#01927b40-43f9-471e-9e2c-407320fac978)\r\n\r\nThis
PR adds a fix 15s per retry to the docker build
runner.","sha":"1bd81449242a1ab57e82c211808753e82f25c92c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195915","number":195915,"mergeCommit":{"message":"[CI]
Add timeouts for retries for docker image build (#195915)\n\n##
Summary\r\nThe generated version of the docker image builder script
didn't have\r\ntimeouts between retries, so a temporary outage on
`docker.elastic.co`\r\nwould cause a docker pull error, failing the
build
(see:\r\nhttps://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4845#01927b40-43f9-471e-9e2c-407320fac978)\r\n\r\nThis
PR adds a fix 15s per retry to the docker build
runner.","sha":"1bd81449242a1ab57e82c211808753e82f25c92c"}}]}]
BACKPORT-->

Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
kibanamachine and delanni authored Oct 14, 2024
1 parent 9b2ffa7 commit 3f89635
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function generator({
echo "Docker pull successful."
break
else
echo "Docker pull unsuccessful, attempt '$attempt'."
echo "Docker pull unsuccessful, attempt '$attempt'. Retrying in 15s"
sleep 15
fi
done
Expand Down

0 comments on commit 3f89635

Please sign in to comment.