Skip to content

Commit

Permalink
Added a connection timeout and speed threshold when downloading the D…
Browse files Browse the repository at this point in the history
…ocker cache
  • Loading branch information
kennytm committed Feb 22, 2019
1 parent e1c6d00 commit ee07b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
echo "Attempting to download $s3url"
rm -f /tmp/rustci_docker_cache
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/')
set -e
echo "Downloaded containers:\n$loaded_images"
Expand Down

0 comments on commit ee07b15

Please sign in to comment.