Skip to content

Commit 85132b2

Browse files
committed
ci: download curl and openssl from s3 for dist-x86_64-linux
CentOS 5 only supports SSLv3 without SNI, and to get newer protocols working we need to download and compile OpenSSL and cURL from our mirror. Because of that, we can't use the CDN, as CloudFront requires TLSv1 with SNI. This commit changes the dist-x86_64-linux image to bypass the CDN for OpenSSL and cURL.
1 parent 14da85c commit 85132b2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/ci/docker/dist-x86_64-linux/build-curl.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ source shared.sh
55

66
VERSION=7.66.0
77

8-
curl https://ci-mirrors.rust-lang.org/rustc/curl-$VERSION.tar.xz \
8+
# This needs to be downloaded directly from S3, it can't go through the CDN.
9+
# That's because the CDN is backed by CloudFront, which requires SNI and TLSv1
10+
# (without paying an absurd amount of money).
11+
curl https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/curl-$VERSION.tar.xz \
912
| xz --decompress \
1013
| tar xf -
1114

src/ci/docker/dist-x86_64-linux/build-openssl.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ set -ex
44
source shared.sh
55

66
VERSION=1.0.2k
7-
URL=https://ci-mirrors.rust-lang.org/rustc/openssl-$VERSION.tar.gz
7+
8+
# This needs to be downloaded directly from S3, it can't go through the CDN.
9+
# That's because the CDN is backed by CloudFront, which requires SNI and TLSv1
10+
# (without paying an absurd amount of money).
11+
URL=https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc/openssl-$VERSION.tar.gz
812

913
curl $URL | tar xzf -
1014

0 commit comments

Comments
 (0)