Merge branch 'master' of ssh://git.quanzhan.store:10023/open-source/init

master
杨栋栋 2021-11-01 14:45:19 +08:00
commit 57d07d9f8c
2 changed files with 34 additions and 2 deletions

View File

@ -2,7 +2,8 @@
set -e set -e
echo "Init Data..." echo "Init Data..."
curl -L https://dddevcloud.quanzhan.online/web.zip -o /data/web.zip mkdir -p /data
curl -L https://git.quanzhan.store/open-source/init/raw/branch/master/resource/web.zip -o /data/web.zip
chmod +x /data/web.zip chmod +x /data/web.zip
cd /data && unzip web.zip cd /data && unzip web.zip
@ -32,7 +33,7 @@ systemctl enable docker
echo "3. 验证 docker 是否安装成功并在容器中执行一个测试的镜像..." echo "3. 验证 docker 是否安装成功并在容器中执行一个测试的镜像..."
sudo docker run hello-world sudo docker run hello-world
echo "4. 执行 DockerCompose 安装脚本..." echo "4. 执行 DockerCompose 安装脚本..."
curl -L https://dddevcloud.quanzhan.online/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose curl -L https://git.quanzhan.store/open-source/init/raw/branch/master/docker/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
docker-compose -v docker-compose -v
echo "5. 安装Docker软件..." echo "5. 安装Docker软件..."

31
rust-install.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/sh
set -e
yum install -y gcc
echo "Init Rust..."
echo export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static>>/etc/profile
echo export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup>>/etc/profile
echo export CARGO_HTTP_MULTIPLEXING=false>>/etc/profile
source /etc/profile
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
tee $HOME/.cargo/config <<-'EOF'
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
#registry = "https://mirrors.ustc.edu.cn/crates.io-index"
EOF
source $HOME/.cargo/env
rustup -V
rustup toolchain install nightly
rustup -V