Skip to content

Commit a6ee3a2

Browse files
committed
curl: Add retries
Change default 0 retries to 5, that should help for transient errors (timeouts, HTTP 408, 429, 500, 502, 503 or 504). Change-Id: Iad3c7270579ffb38299269481ac64d5582abaa22 (cherry picked from commit fd14318)
1 parent 1aa2ddc commit a6ee3a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docker/base/curlrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# curl default options
22
--fail
33
--location
4+
--retry 5
45
--silent
56
--show-error
67
--write-out "curl (%{url_effective}): response: %{http_code}, time: %{time_total}, size: %{size_download}\n"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
other:
3+
- |
4+
Added '--retry 5' to curlrc to improve curl downloads during image builds.

0 commit comments

Comments
 (0)