Skip to content

Commit

Permalink
gracefully handle rate-limits of snapshot.d.o
Browse files Browse the repository at this point in the history
When building the kas-container in CI, the packages are fetched from
snapshot.d.o. As this service recently applied strict rate limits
(req/s), we need to retry multiple times (with exponential backoff) to
get reliable builds.

Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer committed Nov 13, 2024
1 parent dabcd65 commit 37e424c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=${CACHE_SHARING} \
sed -i -e '/^URIs:/d' -e 's|^# http://snapshot\.|URIs: http://snapshot.|' \
/etc/apt/sources.list.d/debian.sources; \
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/use-snapshot.conf; \
echo 'Acquire::Retries "10";\nAcquire::Retries::Delay::Maximum "600";' >> /etc/apt/apt.conf.d/use-snapshot.conf; \
fi && \
apt-get update && \
apt-get install -y locales && \
Expand Down

0 comments on commit 37e424c

Please sign in to comment.