Added a connection timeout and speed threshold when downloading the Docker cache
This commit is contained in:
parent
e1c6d00574
commit
ee07b15a3c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
|
||||||
echo "Attempting to download $s3url"
|
echo "Attempting to download $s3url"
|
||||||
rm -f /tmp/rustci_docker_cache
|
rm -f /tmp/rustci_docker_cache
|
||||||
set +e
|
set +e
|
||||||
retry curl -f -L -C - -o /tmp/rustci_docker_cache "$url"
|
retry curl -y 30 -Y 10 --connect-timeout 30 -f -L -C - -o /tmp/rustci_docker_cache "$url"
|
||||||
loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
|
loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
|
||||||
set -e
|
set -e
|
||||||
echo "Downloaded containers:\n$loaded_images"
|
echo "Downloaded containers:\n$loaded_images"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue