We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 270c800 + 3e6a695 commit 1ea34fbCopy full SHA for 1ea34fb
src/ci/docker/run.sh
@@ -70,8 +70,13 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
70
echo "Attempting to download $url"
71
rm -f /tmp/rustci_docker_cache
72
set +e
73
- retry curl -y 30 -Y 10 --connect-timeout 30 -f -L -C - -o /tmp/rustci_docker_cache "$url"
74
- loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
+ retry curl --max-time 600 -y 30 -Y 10 --connect-timeout 30 -f -L -C - \
+ -o /tmp/rustci_docker_cache "$url"
75
+ echo "Loading images into docker"
76
+ # docker load sometimes hangs in the CI, so time out after 10 minutes with TERM,
77
+ # KILL after 12 minutes
78
+ loaded_images=$(/usr/bin/timeout -k 720 600 docker load -i /tmp/rustci_docker_cache \
79
+ | sed 's/.* sha/sha/')
80
set -e
81
echo "Downloaded containers:\n$loaded_images"
82
fi
0 commit comments