diff --git a/stx/dockerfiles/stx-aptly.Dockerfile b/stx/dockerfiles/stx-aptly.Dockerfile index 6af383912..6fa2c5195 100644 --- a/stx/dockerfiles/stx-aptly.Dockerfile +++ b/stx/dockerfiles/stx-aptly.Dockerfile @@ -33,6 +33,9 @@ MAINTAINER mark.asselstine@windriver.com COPY --from=builder /go/nginx_signing.key nginx_signing.key +# Add retry to apt config +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/99custom + # Update certificates RUN apt-get -q -y update && apt-get -y install --no-install-recommends ca-certificates && update-ca-certificates diff --git a/stx/dockerfiles/stx-builder.Dockerfile b/stx/dockerfiles/stx-builder.Dockerfile index a80cf5657..6de30eea9 100644 --- a/stx/dockerfiles/stx-builder.Dockerfile +++ b/stx/dockerfiles/stx-builder.Dockerfile @@ -21,6 +21,9 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main" >> /etc/apt/source echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list && \ echo "deb http://deb.debian.org/debian bullseye contrib" >> /etc/apt/sources.list +# Add retry to apt config +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/99custom + # Update certificates RUN apt-get -y update && apt-get -y install --no-install-recommends ca-certificates && update-ca-certificates diff --git a/stx/dockerfiles/stx-lat-tool.Dockerfile b/stx/dockerfiles/stx-lat-tool.Dockerfile index 437783572..c5a23a49e 100644 --- a/stx/dockerfiles/stx-lat-tool.Dockerfile +++ b/stx/dockerfiles/stx-lat-tool.Dockerfile @@ -19,6 +19,9 @@ MAINTAINER Chen Qi ARG STX_MIRROR_URL=https://mirror.starlingx.windriver.com/mirror ARG LAT_BINARY_RESOURCE_PATH=${STX_MIRROR_URL}/lat-sdk/lat-sdk-20231206 +# Add retry to apt config +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/99custom + # Update certificates RUN apt-get -y update && apt-get -y install --no-install-recommends ca-certificates && update-ca-certificates diff --git a/stx/dockerfiles/stx-pkgbuilder.Dockerfile b/stx/dockerfiles/stx-pkgbuilder.Dockerfile index 280673e1c..15d5254df 100644 --- a/stx/dockerfiles/stx-pkgbuilder.Dockerfile +++ b/stx/dockerfiles/stx-pkgbuilder.Dockerfile @@ -20,6 +20,9 @@ ARG DEBIAN_SNAPSHOT_BASE=${STX_MIRROR_URL}/debian/debian/snapshot.debian.org/arc RUN echo "deb-src http://deb.debian.org/debian bullseye main" >> /etc/apt/sources.list ARG DEBIAN_FRONTEND=noninteractive +# Add retry to apt config +RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/99custom + # Update certificates RUN apt-get -y update && apt-get -y install --no-install-recommends ca-certificates && update-ca-certificates