Skip to content
Snippets Groups Projects
Commit 050d8c8b authored by Alex Crichton's avatar Alex Crichton
Browse files

Update s3 download locations

parent d5236b0b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ RUN mkdir /toolchain ...@@ -8,7 +8,7 @@ RUN mkdir /toolchain
# Note that this originally came from: # Note that this originally came from:
# https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 # https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
RUN curl -L https://s3.amazonaws.com/rust-lang-ci/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \ RUN curl -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
tar xjf - -C /toolchain --strip-components=1 tar xjf - -C /toolchain --strip-components=1
ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.15/bin \ ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.15/bin \
......
...@@ -8,7 +8,7 @@ RUN mkdir /toolchain ...@@ -8,7 +8,7 @@ RUN mkdir /toolchain
# Note that this originally came from: # Note that this originally came from:
# https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 # https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
RUN curl -L https://s3.amazonaws.com/rust-lang-ci/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \ RUN curl -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
tar xjf - -C /toolchain --strip-components=2 tar xjf - -C /toolchain --strip-components=2
ENV PATH=$PATH:/rust/bin:/toolchain/bin \ ENV PATH=$PATH:/rust/bin:/toolchain/bin \
......
FROM alexcrichton/rust-slave-linux-cross:2016-04-15 FROM alexcrichton/port-prebuilt-freebsd:2017-09-16
USER root
RUN apt-get update RUN apt-get update
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
qemu genext2fs qemu genext2fs
RUN apt-get install -y curl ca-certificates gcc
ENTRYPOINT ["sh"] ENTRYPOINT ["sh"]
......
...@@ -21,14 +21,14 @@ if [ "$QEMU" != "" ]; then ...@@ -21,14 +21,14 @@ if [ "$QEMU" != "" ]; then
# image is .gz : download and uncompress it # image is .gz : download and uncompress it
qemufile=$(echo ${QEMU%.gz} | sed 's/\//__/g') qemufile=$(echo ${QEMU%.gz} | sed 's/\//__/g')
if [ ! -f $tmpdir/$qemufile ]; then if [ ! -f $tmpdir/$qemufile ]; then
curl https://s3.amazonaws.com/rust-lang-ci/libc/$QEMU | \ curl https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/$QEMU | \
gunzip -d > $tmpdir/$qemufile gunzip -d > $tmpdir/$qemufile
fi fi
else else
# plain qcow2 image: just download it # plain qcow2 image: just download it
qemufile=$(echo ${QEMU} | sed 's/\//__/g') qemufile=$(echo ${QEMU} | sed 's/\//__/g')
if [ ! -f $tmpdir/$qemufile ]; then if [ ! -f $tmpdir/$qemufile ]; then
curl https://s3.amazonaws.com/rust-lang-ci/libc/$QEMU \ curl https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/$QEMU \
> $tmpdir/$qemufile > $tmpdir/$qemufile
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment