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
This commit is contained in:
Michal Nasiadka 2022-08-17 07:09:17 +02:00 committed by Radosław Piliszek
parent 8dc0928581
commit fd14318a8b
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# curl default options
--fail
--location
--retry 5
--silent
--show-error
--write-out "curl (%{url_effective}): response: %{http_code}, time: %{time_total}, size: %{size_download}\n"

View File

@ -0,0 +1,4 @@
---
other:
- |
Added '--retry 5' to curlrc to improve curl downloads during image builds.