diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index db60b7f4..2b632a11 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -243,7 +243,7 @@ jobs: - name: Setup Hadolint run: | - sudo curl -LsSf --retry 4 https://github.com/hadolint/hadolint/releases/download/v${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 -o /usr/bin/hadolint + sudo curl -LsSf --retry 8 --retry-all-errors https://github.com/hadolint/hadolint/releases/download/v${{ env.HADOLINT_VERSION }}/hadolint-Linux-x86_64 -o /usr/bin/hadolint sudo chmod +x /usr/bin/hadolint hadolint --version diff --git a/example/azure-pipelines/build-container-buildctl/step-setup-kubectl.yaml b/example/azure-pipelines/build-container-buildctl/step-setup-kubectl.yaml index 1c25ff70..7c8e9e32 100644 --- a/example/azure-pipelines/build-container-buildctl/step-setup-kubectl.yaml +++ b/example/azure-pipelines/build-container-buildctl/step-setup-kubectl.yaml @@ -10,7 +10,7 @@ steps: # Install mkdir -p "$(Agent.TempDirectory)/kubelogin" cd "$(Agent.TempDirectory)/kubelogin" - curl -LsSf --retry 4 https://github.com/Azure/kubelogin/releases/download/v${KUBELOGIN_VERSION}/kubelogin-linux-${ARCH}.zip -o kubelogin.zip + curl -LsSf --retry 8 --retry-all-errors https://github.com/Azure/kubelogin/releases/download/v${KUBELOGIN_VERSION}/kubelogin-linux-${ARCH}.zip -o kubelogin.zip unzip kubelogin.zip -d . mkdir -p /usr/local/kubelogin/bin mv bin/linux_${ARCH}/kubelogin /usr/local/kubelogin/bin/kubelogin diff --git a/src/docker/Dockerfile-bookworm b/src/docker/Dockerfile-bookworm index c6b20b0a..2c973684 100644 --- a/src/docker/Dockerfile-bookworm +++ b/src/docker/Dockerfile-bookworm @@ -77,7 +77,7 @@ FROM base as rootlesskit ARG GO_VERSION ENV GO_VERSION ${GO_VERSION} RUN rm -rf /usr/local/go \ - && curl -LsSf --retry 4 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local + && curl -LsSf --retry 8 --retry-all-errors https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local ENV PATH="${PATH}:/usr/local/go/bin" RUN go version @@ -109,7 +109,7 @@ RUN python3 -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ && unzip -q awscli.zip \ && ./aws/install \ && rm -rf awscli.zip aws \ @@ -118,7 +118,7 @@ RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X6 # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ +RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ && /usr/local/google-cloud-sdk/install.sh \ --additional-components beta \ --quiet \ @@ -132,7 +132,7 @@ RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downlo ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} RUN mkdir -p /opt/microsoft/powershell \ - && curl -LsSf --retry 4 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ && chmod +x /opt/microsoft/powershell/pwsh \ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \ && pwsh -Version \ @@ -141,14 +141,14 @@ RUN mkdir -p /opt/microsoft/powershell \ # Install YQ, then verify installation ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} -RUN curl -LsSf --retry 4 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ && chmod +x /usr/bin/yq \ && yq --version # Install Tini, then verify installation ARG TINI_VERSION ENV TINI_VERSION ${TINI_VERSION} -RUN curl -LsSf --retry 4 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ && chmod +x /tini \ && /tini --version ENTRYPOINT ["/tini", "--"] @@ -157,7 +157,7 @@ ENTRYPOINT ["/tini", "--"] ARG BUILDKIT_VERSION ENV BUILDKIT_VERSION ${BUILDKIT_VERSION} RUN mkdir buildkit \ - && curl -LsSf --retry 4 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ && mv buildkit/bin/* /usr/local/bin \ && rm -rf buildkit \ && buildctl --version \ @@ -176,7 +176,7 @@ ENV AZP_HOME ${HOME}/azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir -p ${AZP_HOME} \ - && curl -LsSf --retry 4 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ + && curl -LsSf --retry 8 --retry-all-errors https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ && cd ${AZP_HOME} \ && chmod +x run-docker.sh config.sh \ && AGENT_ALLOW_RUNASROOT="1" bash run-docker.sh --version \ diff --git a/src/docker/Dockerfile-bullseye b/src/docker/Dockerfile-bullseye index 26661564..aa100411 100644 --- a/src/docker/Dockerfile-bullseye +++ b/src/docker/Dockerfile-bullseye @@ -74,7 +74,7 @@ FROM base as rootlesskit ARG GO_VERSION ENV GO_VERSION ${GO_VERSION} RUN rm -rf /usr/local/go \ - && curl -LsSf --retry 4 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local + && curl -LsSf --retry 8 --retry-all-errors https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local ENV PATH="${PATH}:/usr/local/go/bin" RUN go version @@ -106,7 +106,7 @@ RUN python3 -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ && unzip -q awscli.zip \ && ./aws/install \ && rm -rf awscli.zip aws \ @@ -115,7 +115,7 @@ RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X6 # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ +RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ && /usr/local/google-cloud-sdk/install.sh \ --additional-components beta \ --quiet \ @@ -129,7 +129,7 @@ RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downlo ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} RUN mkdir -p /opt/microsoft/powershell \ - && curl -LsSf --retry 4 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ && chmod +x /opt/microsoft/powershell/pwsh \ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \ && pwsh -Version \ @@ -138,14 +138,14 @@ RUN mkdir -p /opt/microsoft/powershell \ # Install YQ, then verify installation ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} -RUN curl -LsSf --retry 4 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ && chmod +x /usr/bin/yq \ && yq --version # Install Tini, then verify installation ARG TINI_VERSION ENV TINI_VERSION ${TINI_VERSION} -RUN curl -LsSf --retry 4 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ && chmod +x /tini \ && /tini --version ENTRYPOINT ["/tini", "--"] @@ -154,7 +154,7 @@ ENTRYPOINT ["/tini", "--"] ARG BUILDKIT_VERSION ENV BUILDKIT_VERSION ${BUILDKIT_VERSION} RUN mkdir buildkit \ - && curl -LsSf --retry 4 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ && mv buildkit/bin/* /usr/local/bin \ && rm -rf buildkit \ && buildctl --version \ @@ -173,7 +173,7 @@ ENV AZP_HOME ${HOME}/azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir -p ${AZP_HOME} \ - && curl -LsSf --retry 4 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ + && curl -LsSf --retry 8 --retry-all-errors https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ && cd ${AZP_HOME} \ && chmod +x run-docker.sh config.sh \ && AGENT_ALLOW_RUNASROOT="1" bash run-docker.sh --version \ diff --git a/src/docker/Dockerfile-focal b/src/docker/Dockerfile-focal index 368af3f5..d9d992d4 100644 --- a/src/docker/Dockerfile-focal +++ b/src/docker/Dockerfile-focal @@ -73,7 +73,7 @@ FROM base as rootlesskit ARG GO_VERSION ENV GO_VERSION ${GO_VERSION} RUN rm -rf /usr/local/go \ - && curl -LsSf --retry 4 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local + && curl -LsSf --retry 8 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local ENV PATH="${PATH}:/usr/local/go/bin" RUN go version @@ -105,7 +105,7 @@ RUN python3 -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ +RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ && unzip -q awscli.zip \ && ./aws/install \ && rm -rf awscli.zip aws \ @@ -114,7 +114,7 @@ RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X6 # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ +RUN curl -LsSf --retry 8 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ && /usr/local/google-cloud-sdk/install.sh \ --additional-components beta \ --quiet \ @@ -128,7 +128,7 @@ RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downlo ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} RUN mkdir -p /opt/microsoft/powershell \ - && curl -LsSf --retry 4 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ + && curl -LsSf --retry 8 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ && chmod +x /opt/microsoft/powershell/pwsh \ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \ && pwsh -Version \ @@ -137,14 +137,14 @@ RUN mkdir -p /opt/microsoft/powershell \ # Install YQ, then verify installation ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} -RUN curl -LsSf --retry 4 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ +RUN curl -LsSf --retry 8 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ && chmod +x /usr/bin/yq \ && yq --version # Install Tini, then verify installation ARG TINI_VERSION ENV TINI_VERSION ${TINI_VERSION} -RUN curl -LsSf --retry 4 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ +RUN curl -LsSf --retry 8 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ && chmod +x /tini \ && /tini --version ENTRYPOINT ["/tini", "--"] @@ -153,7 +153,7 @@ ENTRYPOINT ["/tini", "--"] ARG BUILDKIT_VERSION ENV BUILDKIT_VERSION ${BUILDKIT_VERSION} RUN mkdir buildkit \ - && curl -LsSf --retry 4 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ + && curl -LsSf --retry 8 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ && mv buildkit/bin/* /usr/local/bin \ && rm -rf buildkit \ && buildctl --version \ @@ -172,7 +172,7 @@ ENV AZP_HOME ${HOME}/azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir -p ${AZP_HOME} \ - && curl -LsSf --retry 4 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ + && curl -LsSf --retry 8 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ && cd ${AZP_HOME} \ && chmod +x run-docker.sh config.sh \ && AGENT_ALLOW_RUNASROOT="1" bash run-docker.sh --version \ diff --git a/src/docker/Dockerfile-jammy b/src/docker/Dockerfile-jammy index cf33bb2b..f7fd31d2 100644 --- a/src/docker/Dockerfile-jammy +++ b/src/docker/Dockerfile-jammy @@ -73,7 +73,7 @@ FROM base as rootlesskit ARG GO_VERSION ENV GO_VERSION ${GO_VERSION} RUN rm -rf /usr/local/go \ - && curl -LsSf --retry 4 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local + && curl -LsSf --retry 8 --retry-all-errors https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local ENV PATH="${PATH}:/usr/local/go/bin" RUN go version @@ -104,7 +104,7 @@ RUN python3 -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ && unzip -q awscli.zip \ && ./aws/install \ && rm -rf awscli.zip aws \ @@ -113,7 +113,7 @@ RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X6 # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ +RUN curl -LsSf --retry 8 --retry-all-errors https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ && /usr/local/google-cloud-sdk/install.sh \ --additional-components beta \ --quiet \ @@ -127,7 +127,7 @@ RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downlo ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} RUN mkdir -p /opt/microsoft/powershell \ - && curl -LsSf --retry 4 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ && chmod +x /opt/microsoft/powershell/pwsh \ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \ && pwsh -Version \ @@ -136,14 +136,14 @@ RUN mkdir -p /opt/microsoft/powershell \ # Install YQ, then verify installation ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} -RUN curl -LsSf --retry 4 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ && chmod +x /usr/bin/yq \ && yq --version # Install Tini, then verify installation ARG TINI_VERSION ENV TINI_VERSION ${TINI_VERSION} -RUN curl -LsSf --retry 4 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ +RUN curl -LsSf --retry 8 --retry-all-errors https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ && chmod +x /tini \ && /tini --version ENTRYPOINT ["/tini", "--"] @@ -152,7 +152,7 @@ ENTRYPOINT ["/tini", "--"] ARG BUILDKIT_VERSION ENV BUILDKIT_VERSION ${BUILDKIT_VERSION} RUN mkdir buildkit \ - && curl -LsSf --retry 4 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ + && curl -LsSf --retry 8 --retry-all-errors https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ && mv buildkit/bin/* /usr/local/bin \ && rm -rf buildkit \ && buildctl --version \ @@ -171,7 +171,7 @@ ENV AZP_HOME ${HOME}/azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir -p ${AZP_HOME} \ - && curl -LsSf --retry 4 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ + && curl -LsSf --retry 8 --retry-all-errors https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ && cd ${AZP_HOME} \ && chmod +x run-docker.sh config.sh \ && AGENT_ALLOW_RUNASROOT="1" bash run-docker.sh --version \ diff --git a/src/docker/Dockerfile-ubi8 b/src/docker/Dockerfile-ubi8 index d1aba115..1dea23d5 100644 --- a/src/docker/Dockerfile-ubi8 +++ b/src/docker/Dockerfile-ubi8 @@ -69,7 +69,7 @@ FROM base as rootlesskit ARG GO_VERSION ENV GO_VERSION ${GO_VERSION} RUN rm -rf /usr/local/go \ - && curl -LsSf --retry 4 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local + && curl -LsSf --retry 8 https://go.dev/dl/go${GO_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C /usr/local ENV PATH="${PATH}:/usr/local/go/bin" RUN go version @@ -101,7 +101,7 @@ RUN python3 -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ +RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \ && unzip -q awscli.zip \ && ./aws/install \ && rm -rf awscli.zip aws \ @@ -110,7 +110,7 @@ RUN curl -LsSf --retry 4 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X6 # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ +RUN curl -LsSf --retry 8 https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_CLI_VERSION}-linux-$(ARCH_X64=x86_64 ARCH_ARM64=arm bash arch.sh).tar.gz | tar -xz -C /usr/local \ && /usr/local/google-cloud-sdk/install.sh \ --additional-components beta \ --quiet \ @@ -124,7 +124,7 @@ RUN curl -LsSf --retry 4 https://dl.google.com/dl/cloudsdk/channels/rapid/downlo ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} RUN mkdir -p /opt/microsoft/powershell \ - && curl -LsSf --retry 4 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ + && curl -LsSf --retry 8 https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-$(bash arch.sh).tar.gz | tar -xz -C /opt/microsoft/powershell \ && chmod +x /opt/microsoft/powershell/pwsh \ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \ && pwsh -Version \ @@ -133,14 +133,14 @@ RUN mkdir -p /opt/microsoft/powershell \ # Install YQ, then verify installation ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} -RUN curl -LsSf --retry 4 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ +RUN curl -LsSf --retry 8 https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_$(ARCH_X64=amd64 bash arch.sh) -o /usr/bin/yq \ && chmod +x /usr/bin/yq \ && yq --version # Install Tini, then verify installation ARG TINI_VERSION ENV TINI_VERSION ${TINI_VERSION} -RUN curl -LsSf --retry 4 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ +RUN curl -LsSf --retry 8 https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$(ARCH_X64=amd64 bash arch.sh) -o /tini \ && chmod +x /tini \ && /tini --version ENTRYPOINT ["/tini", "--"] @@ -149,7 +149,7 @@ ENTRYPOINT ["/tini", "--"] ARG BUILDKIT_VERSION ENV BUILDKIT_VERSION ${BUILDKIT_VERSION} RUN mkdir buildkit \ - && curl -LsSf --retry 4 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ + && curl -LsSf --retry 8 https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/buildkit-v${BUILDKIT_VERSION}.linux-$(ARCH_X64=amd64 bash arch.sh).tar.gz | tar -xz -C buildkit \ && mv buildkit/bin/* /usr/local/bin \ && rm -rf buildkit \ && buildctl --version \ @@ -168,7 +168,7 @@ ENV AZP_HOME ${HOME}/azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir -p ${AZP_HOME} \ - && curl -LsSf --retry 4 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ + && curl -LsSf --retry 8 https://vstsagentpackage.azureedge.net/agent/${AZP_AGENT_VERSION}/pipelines-agent-linux-$(bash arch.sh)-${AZP_AGENT_VERSION}.tar.gz | tar -xz -C ${AZP_HOME} \ && cd ${AZP_HOME} \ && chmod +x run-docker.sh config.sh \ && AGENT_ALLOW_RUNASROOT="1" bash run-docker.sh --version \ diff --git a/src/docker/Dockerfile-win-ltsc2019 b/src/docker/Dockerfile-win-ltsc2019 index 7aa7c3bd..c2a67730 100644 --- a/src/docker/Dockerfile-win-ltsc2019 +++ b/src/docker/Dockerfile-win-ltsc2019 @@ -11,7 +11,7 @@ ENV PYTHONDONTWRITEBYTECODE 1 # Install Powershell, then verify installation ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/PowerShell/PowerShell/releases/download/v%POWERSHELL_VERSION%/PowerShell-%POWERSHELL_VERSION%-win-x64.msi" -o powershell.msi \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/PowerShell/PowerShell/releases/download/v%POWERSHELL_VERSION%/PowerShell-%POWERSHELL_VERSION%-win-x64.msi" -o powershell.msi \ && msiexec.exe /i powershell.msi /qn /norestart \ && del /q powershell.msi RUN pwsh -Version @@ -20,7 +20,7 @@ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference # Install Git, then verify installation ARG GIT_VERSION ENV GIT_VERSION ${GIT_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/git-for-windows/git/releases/download/v${Env:GIT_VERSION}.windows.1/Git-${Env:GIT_VERSION}-64-bit.exe" -o git.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/git-for-windows/git/releases/download/v${Env:GIT_VERSION}.windows.1/Git-${Env:GIT_VERSION}-64-bit.exe" -o git.exe \ && Start-Process git.exe -Wait -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP-' \ && Remove-Item git.exe RUN git --version @@ -29,7 +29,7 @@ RUN git --version ARG JQ_VERSION ENV JQ_VERSION ${JQ_VERSION} RUN mkdir 'C:\Program Files\jq' \ - && curl -LsSf --retry 4 "https://github.com/stedolan/jq/releases/download/jq-${Env:JQ_VERSION}/jq-win64.exe" -o 'C:\Program Files\jq\jq.exe' \ + && curl -LsSf --retry 8 --retry-all-errors "https://github.com/stedolan/jq/releases/download/jq-${Env:JQ_VERSION}/jq-win64.exe" -o 'C:\Program Files\jq\jq.exe' \ && [Environment]::SetEnvironmentVariable('Path', $Env:Path + ';C:\Program Files\jq', [EnvironmentVariableTarget]::Machine) # hadolint ignore=DL3059 RUN jq --version @@ -37,7 +37,7 @@ RUN jq --version # Install Python, then verify installation ARG PYTHON_VERSION ENV PYTHON_VERSION ${PYTHON_VERSION} -RUN curl -LsSf --retry 4 "https://python.org/ftp/python/${Env:PYTHON_VERSION}/python-${Env:PYTHON_VERSION}-amd64.exe" -o python.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://python.org/ftp/python/${Env:PYTHON_VERSION}/python-${Env:PYTHON_VERSION}-amd64.exe" -o python.exe \ && Start-Process python.exe -Wait -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1 Include_test=0' \ && Remove-Item python.exe RUN python --version \ @@ -62,7 +62,7 @@ RUN python -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 "https://awscli.amazonaws.com/AWSCLIV2-${Env:AWS_CLI_VERSION}.msi" -o awscli.msi \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://awscli.amazonaws.com/AWSCLIV2-${Env:AWS_CLI_VERSION}.msi" -o awscli.msi \ && Start-Process msiexec.exe -Wait -ArgumentList '/I awscli.msi /qn /norestart' \ && Remove-Item awscli.msi RUN aws --version @@ -70,7 +70,7 @@ RUN aws --version # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${Env:GCLOUD_CLI_VERSION}-windows-x86_64.zip" -o gcloud.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${Env:GCLOUD_CLI_VERSION}-windows-x86_64.zip" -o gcloud.zip \ && Expand-Archive -Force gcloud.zip -DestinationPath 'C:\Program Files' \ && Remove-Item gcloud.zip \ && Rename-Item 'C:\Program Files\google-cloud-sdk' 'gcloud' \ @@ -82,7 +82,7 @@ RUN gcloud version ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} RUN mkdir 'C:\Program Files\yq' \ - && curl -LsSf --retry 4 "https://github.com/mikefarah/yq/releases/download/v${Env:YQ_VERSION}/yq_windows_amd64.exe" -o 'C:\Program Files\yq\yq.exe' \ + && curl -LsSf --retry 8 --retry-all-errors "https://github.com/mikefarah/yq/releases/download/v${Env:YQ_VERSION}/yq_windows_amd64.exe" -o 'C:\Program Files\yq\yq.exe' \ && [Environment]::SetEnvironmentVariable('Path', $Env:Path + ';C:\Program Files\yq', [EnvironmentVariableTarget]::Machine) # hadolint ignore=DL3059 RUN yq --version @@ -95,7 +95,7 @@ ENV AZP_HOME ${HOME}\\azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir $Env:AZP_HOME \ - && curl -LsSf --retry 4 "https://vstsagentpackage.azureedge.net/agent/${Env:AZP_AGENT_VERSION}/vsts-agent-win-x64-${Env:AZP_AGENT_VERSION}.zip" -o azp-agent.zip \ + && curl -LsSf --retry 8 --retry-all-errors "https://vstsagentpackage.azureedge.net/agent/${Env:AZP_AGENT_VERSION}/vsts-agent-win-x64-${Env:AZP_AGENT_VERSION}.zip" -o azp-agent.zip \ && Expand-Archive -Force azp-agent.zip -DestinationPath $Env:AZP_HOME \ && Remove-Item azp-agent.zip \ && & "${Env:AZP_HOME}\run.cmd" --version @@ -104,7 +104,7 @@ ENV AZP_WORK ${HOME}\\azp-work # Install zstd, then verify installation ARG ZSTD_VERSION ENV ZSTD_VERSION ${ZSTD_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/facebook/zstd/releases/download/v${Env:ZSTD_VERSION}/zstd-v${Env:ZSTD_VERSION}-win64.zip" -o zstd.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/facebook/zstd/releases/download/v${Env:ZSTD_VERSION}/zstd-v${Env:ZSTD_VERSION}-win64.zip" -o zstd.zip \ && Expand-Archive -Force zstd.zip -DestinationPath 'C:\Program Files' \ && Remove-Item zstd.zip \ && Rename-Item "C:\Program` Files\zstd-v${Env:ZSTD_VERSION}-win64" 'zstd' \ @@ -117,7 +117,7 @@ RUN zstd --version ARG VS_BUILDTOOLS_VERSION ENV VS_BUILDTOOLS_VERSION ${VS_BUILDTOOLS_VERSION} # TODO: Delete the installer, but it's seems locked, receiving "Remove-Item: Access to the path 'C:\buildtools.exe' is denied." -RUN curl -LsSf --retry 4 "https://aka.ms/vs/${Env:VS_BUILDTOOLS_VERSION}/release/vs_buildtools.exe" -o buildtools.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://aka.ms/vs/${Env:VS_BUILDTOOLS_VERSION}/release/vs_buildtools.exe" -o buildtools.exe \ && .\buildtools.exe \ --installPath 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools' \ --nocache \ diff --git a/src/docker/Dockerfile-win-ltsc2022 b/src/docker/Dockerfile-win-ltsc2022 index 69bc9052..eedc1f06 100644 --- a/src/docker/Dockerfile-win-ltsc2022 +++ b/src/docker/Dockerfile-win-ltsc2022 @@ -11,7 +11,7 @@ ENV PYTHONDONTWRITEBYTECODE 1 # Install Powershell, then verify installation ARG POWERSHELL_VERSION ENV POWERSHELL_VERSION ${POWERSHELL_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/PowerShell/PowerShell/releases/download/v%POWERSHELL_VERSION%/PowerShell-%POWERSHELL_VERSION%-win-x64.msi" -o powershell.msi \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/PowerShell/PowerShell/releases/download/v%POWERSHELL_VERSION%/PowerShell-%POWERSHELL_VERSION%-win-x64.msi" -o powershell.msi \ && msiexec.exe /i powershell.msi /qn /norestart \ && del /q powershell.msi RUN pwsh -Version @@ -20,7 +20,7 @@ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference # Install Git, then verify installation ARG GIT_VERSION ENV GIT_VERSION ${GIT_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/git-for-windows/git/releases/download/v${Env:GIT_VERSION}.windows.1/Git-${Env:GIT_VERSION}-64-bit.exe" -o git.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/git-for-windows/git/releases/download/v${Env:GIT_VERSION}.windows.1/Git-${Env:GIT_VERSION}-64-bit.exe" -o git.exe \ && Start-Process git.exe -Wait -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP-' \ && Remove-Item git.exe RUN git --version @@ -29,7 +29,7 @@ RUN git --version ARG JQ_VERSION ENV JQ_VERSION ${JQ_VERSION} RUN mkdir 'C:\Program Files\jq' \ - && curl -LsSf --retry 4 "https://github.com/stedolan/jq/releases/download/jq-${Env:JQ_VERSION}/jq-win64.exe" -o 'C:\Program Files\jq\jq.exe' \ + && curl -LsSf --retry 8 --retry-all-errors "https://github.com/stedolan/jq/releases/download/jq-${Env:JQ_VERSION}/jq-win64.exe" -o 'C:\Program Files\jq\jq.exe' \ && [Environment]::SetEnvironmentVariable('Path', $Env:Path + ';C:\Program Files\jq', [EnvironmentVariableTarget]::Machine) # hadolint ignore=DL3059 RUN jq --version @@ -37,7 +37,7 @@ RUN jq --version # Install Python, then verify installation ARG PYTHON_VERSION ENV PYTHON_VERSION ${PYTHON_VERSION} -RUN curl -LsSf --retry 4 "https://python.org/ftp/python/${Env:PYTHON_VERSION}/python-${Env:PYTHON_VERSION}-amd64.exe" -o python.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://python.org/ftp/python/${Env:PYTHON_VERSION}/python-${Env:PYTHON_VERSION}-amd64.exe" -o python.exe \ && Start-Process python.exe -Wait -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1 Include_test=0' \ && Remove-Item python.exe RUN python --version \ @@ -62,7 +62,7 @@ RUN python -m pip \ # Install AWS CLI, then verify installation ARG AWS_CLI_VERSION ENV AWS_CLI_VERSION ${AWS_CLI_VERSION} -RUN curl -LsSf --retry 4 "https://awscli.amazonaws.com/AWSCLIV2-${Env:AWS_CLI_VERSION}.msi" -o awscli.msi \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://awscli.amazonaws.com/AWSCLIV2-${Env:AWS_CLI_VERSION}.msi" -o awscli.msi \ && Start-Process msiexec.exe -Wait -ArgumentList '/I awscli.msi /qn /norestart' \ && Remove-Item awscli.msi RUN aws --version @@ -70,7 +70,7 @@ RUN aws --version # Install Google Cloud CLI, then verify installation ARG GCLOUD_CLI_VERSION ENV GCLOUD_CLI_VERSION ${GCLOUD_CLI_VERSION} -RUN curl -LsSf --retry 4 "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${Env:GCLOUD_CLI_VERSION}-windows-x86_64.zip" -o gcloud.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${Env:GCLOUD_CLI_VERSION}-windows-x86_64.zip" -o gcloud.zip \ && Expand-Archive -Force gcloud.zip -DestinationPath 'C:\Program Files' \ && Remove-Item gcloud.zip \ && Rename-Item 'C:\Program Files\google-cloud-sdk' 'gcloud' \ @@ -82,7 +82,7 @@ RUN gcloud version ARG YQ_VERSION ENV YQ_VERSION ${YQ_VERSION} RUN mkdir 'C:\Program Files\yq' \ - && curl -LsSf --retry 4 "https://github.com/mikefarah/yq/releases/download/v${Env:YQ_VERSION}/yq_windows_amd64.exe" -o 'C:\Program Files\yq\yq.exe' \ + && curl -LsSf --retry 8 --retry-all-errors "https://github.com/mikefarah/yq/releases/download/v${Env:YQ_VERSION}/yq_windows_amd64.exe" -o 'C:\Program Files\yq\yq.exe' \ && [Environment]::SetEnvironmentVariable('Path', $Env:Path + ';C:\Program Files\yq', [EnvironmentVariableTarget]::Machine) # hadolint ignore=DL3059 RUN yq --version @@ -95,7 +95,7 @@ ENV AZP_HOME ${HOME}\\azp-agent # See: https://github.com/microsoft/azure-pipelines-agent/blob/b5ff4408239f3e938560f8b2e3848df76489a8d0/src/Agent.Listener/Agent.cs#L354C24-L354C24 ENV agent.disableupdate "1" RUN mkdir $Env:AZP_HOME \ - && curl -LsSf --retry 4 "https://vstsagentpackage.azureedge.net/agent/${Env:AZP_AGENT_VERSION}/vsts-agent-win-x64-${Env:AZP_AGENT_VERSION}.zip" -o azp-agent.zip \ + && curl -LsSf --retry 8 --retry-all-errors "https://vstsagentpackage.azureedge.net/agent/${Env:AZP_AGENT_VERSION}/vsts-agent-win-x64-${Env:AZP_AGENT_VERSION}.zip" -o azp-agent.zip \ && Expand-Archive -Force azp-agent.zip -DestinationPath $Env:AZP_HOME \ && Remove-Item azp-agent.zip \ && & "${Env:AZP_HOME}\run.cmd" --version @@ -104,7 +104,7 @@ ENV AZP_WORK ${HOME}\\azp-work # Install zstd, then verify installation ARG ZSTD_VERSION ENV ZSTD_VERSION ${ZSTD_VERSION} -RUN curl -LsSf --retry 4 "https://github.com/facebook/zstd/releases/download/v${Env:ZSTD_VERSION}/zstd-v${Env:ZSTD_VERSION}-win64.zip" -o zstd.zip \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://github.com/facebook/zstd/releases/download/v${Env:ZSTD_VERSION}/zstd-v${Env:ZSTD_VERSION}-win64.zip" -o zstd.zip \ && Expand-Archive -Force zstd.zip -DestinationPath 'C:\Program Files' \ && Remove-Item zstd.zip \ && Rename-Item "C:\Program` Files\zstd-v${Env:ZSTD_VERSION}-win64" 'zstd' \ @@ -117,7 +117,7 @@ RUN zstd --version ARG VS_BUILDTOOLS_VERSION ENV VS_BUILDTOOLS_VERSION ${VS_BUILDTOOLS_VERSION} # TODO: Delete the installer, but it's seems locked, receiving "Remove-Item: Access to the path 'C:\buildtools.exe' is denied." -RUN curl -LsSf --retry 4 "https://aka.ms/vs/${Env:VS_BUILDTOOLS_VERSION}/release/vs_buildtools.exe" -o buildtools.exe \ +RUN curl -LsSf --retry 8 --retry-all-errors "https://aka.ms/vs/${Env:VS_BUILDTOOLS_VERSION}/release/vs_buildtools.exe" -o buildtools.exe \ && .\buildtools.exe \ --installPath 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools' \ --nocache \