mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Explicitly retry failed docker pulls (#63946)
Closes #63869. Perform `docker pull` explicitly instead of as part of `docker build`, and wrap it in a retry loop. This is an attempt to make the build more resilient to transient errors.
This commit is contained in:
parent
9defe10616
commit
9a8be26cc8
2 changed files with 62 additions and 8 deletions
|
@ -266,6 +266,12 @@ void addBuildDockerImage(Architecture architecture, boolean oss, DockerBase base
|
|||
dependsOn(copyContextTask)
|
||||
dockerContext.fileProvider(copyContextTask.map { it.destinationDir })
|
||||
|
||||
if (base == DockerBase.UBI) {
|
||||
baseImages = [ base.getImage() ]
|
||||
} else {
|
||||
baseImages = [ base.getImage(), 'alpine:latest' ]
|
||||
}
|
||||
|
||||
String version = VersionProperties.elasticsearch
|
||||
if (oss) {
|
||||
tags = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue