Retry apt commands on connection timeout when building docker.
PiperOrigin-RevId: 302937064 Change-Id: I07f6e70036a0af49cdda6cb36d96b715ecdd4e84
This commit is contained in:
parent
3754f081a4
commit
b4767daaaa
@ -16,6 +16,9 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Retry on connection timeout.
|
||||
bash -c "echo 'APT::Acquire::Retries \"3\";' > /etc/apt/apt.conf.d/80-retries"
|
||||
|
||||
# Install bootstrap dependencies from ubuntu deb repository.
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
|
Loading…
Reference in New Issue
Block a user