Skip to content

Commit

Permalink
Do more retries and reduce download limits for APT five times
Browse files Browse the repository at this point in the history
We get snapshots of debian banning us while installing packages.
This is an attempt to go even slower in hopes to eliviate such bans
  • Loading branch information
yarikoptic committed Aug 6, 2024
1 parent fb7f9ba commit 58898b7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM neurodebian:bookworm
# provide some apt conf tune ups with hope to make apt more robust in talking to it
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959518 for more info
# (later apt as now in sid should be more robust)
RUN echo 'Acquire::http::Dl-Limit "1000";' >| /etc/apt/apt.conf.d/20snapshots \
&& echo 'Acquire::https::Dl-Limit "1000";' >> /etc/apt/apt.conf.d/20snapshots \
&& echo 'Acquire::Retries "5";' >> /etc/apt/apt.conf.d/20snapshots
RUN echo 'Acquire::http::Dl-Limit "200";' >| /etc/apt/apt.conf.d/20snapshots \
&& echo 'Acquire::https::Dl-Limit "200";' >> /etc/apt/apt.conf.d/20snapshots \
&& echo 'Acquire::Retries "10";' >> /etc/apt/apt.conf.d/20snapshots

# Notes:
# - in APT for NeuroDebian we have #deb-src for debian-devel, so we need to change
Expand Down

0 comments on commit 58898b7

Please sign in to comment.