Add rustup-mirror script

This commit is contained in:
Jiajie Chen 2019-02-14 20:10:11 +08:00
parent b3d8d30945
commit 3a00b69f21
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM rust:1.32.0
MAINTAINER Jiajie Chen <jiegec@noc.ac.cn>
RUN cargo install rustup-mirror
CMD /bin/bash

6
rustup.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "rustup sync started"
/usr/local/cargo/bin/rustup-mirror -u https://mirrors.tuna.tsinghua.edu.cn/rustup -m ${TUNASYNC_WORKING_DIR}
echo "finished"