Skip to content

Commit 2c870a4

Browse files
committed
increase the number of retries for apt-get
1 parent b50bb6b commit 2c870a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/test/smb-fixture/src/main/java/org/elasticsearch/test/fixtures/smb/SmbTestContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public SmbTestContainer() {
2727
new ImageFromDockerfile("es-smb-fixture").withDockerfileFromBuilder(
2828
builder -> builder.from(DOCKER_BASE_IMAGE)
2929
.env("TZ", "Etc/UTC")
30+
.run("echo 'Acquire::Retries \"10\";' | sudo tee /etc/apt/apt.conf.d/80-retries")
3031
.run("DEBIAN_FRONTEND=noninteractive apt-get update -qqy && apt-get install -qqy tzdata winbind samba ldap-utils")
3132
.copy("fixture/provision/installsmb.sh", "/fixture/provision/installsmb.sh")
3233
.copy("fixture/certs/ca.key", "/fixture/certs/ca.key")

0 commit comments

Comments
 (0)