File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUST_REPO="https://github.com/rust-lang/rust"
14
14
ARTIFACTS_BASE_URL=" https://ci-artifacts.rust-lang.org/rustc-builds"
15
15
16
16
# A `Dockerfile` under `rustup`'s `ci/docker` directory may start with `FROM rust-$TARGET`.
17
- # This means it is using an S3-cached Docker image provided by `rustc`'s CI.
17
+ # This means it is using a Docker image fetched from a container registry provided by `rustc`'s CI.
18
18
LOCAL_DOCKER_TAG=" rust-$TARGET "
19
19
# The following is a mapping from `$TARGET`s to cached Docker images built from `Dockerfile`s under
20
20
# <https://github.com/rust-lang/rust/blob/master/src/ci/docker/host-x86_64/>,
@@ -51,16 +51,11 @@ info="/tmp/image-$image.txt"
51
51
52
52
rm -f " $info "
53
53
curl -o " $info " " $image_url "
54
- digest=$( grep -m1 ^sha " $info " )
55
54
56
55
if [ -z " $( docker images -q " ${LOCAL_DOCKER_TAG} " ) " ]; then
57
- url=$( grep -m1 ^https " $info " )
58
- cache=/tmp/rustci_docker_cache
59
- echo " Attempting to download $url "
60
- rm -f " $cache "
61
- set +e
62
- command_retry curl -y 30 -Y 10 --connect-timeout 30 -f -L -C - -o " $cache " " $url "
63
56
set -e
64
- docker load --quiet -i " $cache "
65
- docker tag " $digest " " ${LOCAL_DOCKER_TAG} "
57
+ image_tag=$( cat $info )
58
+ echo " Attempting to pull image ${image_tag} "
59
+ docker pull " ${image_tag} "
60
+ docker tag " ${image_tag} " " ${LOCAL_DOCKER_TAG} "
66
61
fi
You can’t perform that action at this time.
0 commit comments