From 24130682e0dbcbaa9114a4d5bf8695fa8a19a573 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Sat, 9 Nov 2024 00:05:02 +0100 Subject: [PATCH] Configure apt retries --- src/engines/jruby/9.2/Dockerfile | 3 +++ src/engines/jruby/9.3/Dockerfile | 3 +++ src/engines/jruby/9.4/Dockerfile | 3 +++ src/engines/ruby/2.1/Dockerfile | 3 +++ src/engines/ruby/2.2/Dockerfile | 3 +++ src/engines/ruby/2.3/Dockerfile | 3 +++ src/engines/ruby/2.4/Dockerfile | 3 +++ src/engines/ruby/2.5/Dockerfile | 3 +++ src/engines/ruby/2.6/Dockerfile | 3 +++ src/engines/ruby/2.7/Dockerfile | 3 +++ src/engines/ruby/3.0/Dockerfile | 3 +++ src/engines/ruby/3.1/Dockerfile | 3 +++ src/engines/ruby/3.2/Dockerfile | 3 +++ src/engines/ruby/3.3/Dockerfile | 3 +++ src/engines/ruby/3.4/Dockerfile | 3 +++ 15 files changed, 45 insertions(+) diff --git a/src/engines/jruby/9.2/Dockerfile b/src/engines/jruby/9.2/Dockerfile index 53651a0..30dc4e8 100644 --- a/src/engines/jruby/9.2/Dockerfile +++ b/src/engines/jruby/9.2/Dockerfile @@ -22,6 +22,9 @@ FROM eclipse-temurin:8-jammy AS jruby-9.2.21.0-jre8 # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/jruby/9.3/Dockerfile b/src/engines/jruby/9.3/Dockerfile index 358e34a..dafe37c 100644 --- a/src/engines/jruby/9.3/Dockerfile +++ b/src/engines/jruby/9.3/Dockerfile @@ -22,6 +22,9 @@ FROM eclipse-temurin:11-jammy AS jruby-9.3.9.0-jre11 # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/jruby/9.4/Dockerfile b/src/engines/jruby/9.4/Dockerfile index 929875c..ea053cd 100644 --- a/src/engines/jruby/9.4/Dockerfile +++ b/src/engines/jruby/9.4/Dockerfile @@ -22,6 +22,9 @@ FROM eclipse-temurin:11-jammy AS jruby-9.4.7.0-jre11 # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.1/Dockerfile b/src/engines/ruby/2.1/Dockerfile index 52ad24e..3efe869 100644 --- a/src/engines/ruby/2.1/Dockerfile +++ b/src/engines/ruby/2.1/Dockerfile @@ -121,6 +121,9 @@ FROM ruby-2.1.10-stretch # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.2/Dockerfile b/src/engines/ruby/2.2/Dockerfile index 87f85ff..a4d9711 100644 --- a/src/engines/ruby/2.2/Dockerfile +++ b/src/engines/ruby/2.2/Dockerfile @@ -125,6 +125,9 @@ FROM ruby-2.2.10-stretch # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.3/Dockerfile b/src/engines/ruby/2.3/Dockerfile index 89a7fd3..5333e1e 100644 --- a/src/engines/ruby/2.3/Dockerfile +++ b/src/engines/ruby/2.3/Dockerfile @@ -26,6 +26,9 @@ RUN echo "deb [trusted=yes] http://archive.debian.org/debian/ stretch main contr # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.4/Dockerfile b/src/engines/ruby/2.4/Dockerfile index 501dc0f..3aa0e8f 100644 --- a/src/engines/ruby/2.4/Dockerfile +++ b/src/engines/ruby/2.4/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:2.4.10-buster # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.5/Dockerfile b/src/engines/ruby/2.5/Dockerfile index 6942378..7eb4e5d 100644 --- a/src/engines/ruby/2.5/Dockerfile +++ b/src/engines/ruby/2.5/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:2.5.9-buster # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.6/Dockerfile b/src/engines/ruby/2.6/Dockerfile index 0cef956..7c8dcae 100644 --- a/src/engines/ruby/2.6/Dockerfile +++ b/src/engines/ruby/2.6/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:2.6.10-bullseye # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/2.7/Dockerfile b/src/engines/ruby/2.7/Dockerfile index 2d50b6b..90d3f25 100644 --- a/src/engines/ruby/2.7/Dockerfile +++ b/src/engines/ruby/2.7/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:2.7.8-bullseye # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/3.0/Dockerfile b/src/engines/ruby/3.0/Dockerfile index 780c9de..f27c46b 100644 --- a/src/engines/ruby/3.0/Dockerfile +++ b/src/engines/ruby/3.0/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:3.0.7-bullseye # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/3.1/Dockerfile b/src/engines/ruby/3.1/Dockerfile index 5ab33a3..6368094 100644 --- a/src/engines/ruby/3.1/Dockerfile +++ b/src/engines/ruby/3.1/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:3.1.6-bookworm # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/3.2/Dockerfile b/src/engines/ruby/3.2/Dockerfile index f398c59..6eb7ffd 100644 --- a/src/engines/ruby/3.2/Dockerfile +++ b/src/engines/ruby/3.2/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:3.2.4-bookworm # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/3.3/Dockerfile b/src/engines/ruby/3.3/Dockerfile index ae1127d..503b007 100644 --- a/src/engines/ruby/3.3/Dockerfile +++ b/src/engines/ruby/3.3/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:3.3.2-bookworm # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be diff --git a/src/engines/ruby/3.4/Dockerfile b/src/engines/ruby/3.4/Dockerfile index c89ce59..d65c3e0 100644 --- a/src/engines/ruby/3.4/Dockerfile +++ b/src/engines/ruby/3.4/Dockerfile @@ -22,6 +22,9 @@ FROM ruby:3.4.0-preview2 # results. ARG REPRO_RUN_KEY=0 +# Configure apt retries to improve automation reliability +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries + # `apt-get update` is uncontrolled and fetches whatever is today's index. # For the sake of reproducibility subsequent steps (including in dependent # images) should not do `apt-get update`, instead this base image should be