frrouting/docker
Vincent Jardin 8c98139471 ci: add retry logic for apt and curl to handle transient failures
Ubuntu package mirrors can experience transient failures during CI
runs, causing builds to fail with 404 errors even though the packages
exist. Similarly, fetching GPG keys from external servers may fail
due to temporary network issues.

This patch introduces an APT_RETRIES build argument (defaulting to 3)
that controls the number of retry attempts for network operations.
The apt configuration is updated to use Acquire::Retries along with
reasonable timeouts for http and https connections.

The apt-get update commands are wrapped in retry loops that sleep for
10 seconds between attempts, giving mirrors time to recover. The same
pattern is applied to the curl command that fetches the FRR GPG key
for the package repository.

The github-ci.yml workflow receives the same retry treatment for its
apt-get update call during test environment setup.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
2026-01-08 10:11:18 +01:00
..
alpine docker: Move apk dependencies into APKBUILD file 2025-11-10 16:50:42 +02:00
centos-7 docker: Build with 256 way ecmp 2025-05-09 07:54:53 -04:00
centos-8 docker: modify libyang version in Dockerfile for centos-8 2025-12-30 00:33:14 +09:00
debian docker: fix chmod issues when running debian container 2024-06-04 11:17:02 +03:00
ubi8-minimal build: simplify SNMP autoconf checks 2025-05-30 09:54:29 +02:00
ubuntu-ci ci: add retry logic for apt and curl to handle transient failures 2026-01-08 10:11:18 +01:00
ubuntu20-ci docker: fix typos in docs for ubuntu20-ci and ubuntu22-ci 2023-11-26 19:21:49 +03:00
ubuntu22-ci docker: add ubuntu24-ci docker image support 2025-01-12 02:48:29 +00:00
ubuntu24-ci docker: add ubuntu24-ci docker image support 2025-01-12 02:48:29 +00:00
.gitignore alpine packaging: build packages and base image directly from git 2018-04-04 10:05:44 -07:00