From 568994f7f3914471b57244e9b6f22358465a23cb Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 05:48:41 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'cengos7-system-instal?= =?UTF-8?q?l.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cengos7-system-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cengos7-system-install.sh b/cengos7-system-install.sh index 8fadb37..a7f56ca 100644 --- a/cengos7-system-install.sh +++ b/cengos7-system-install.sh @@ -2,7 +2,7 @@ set -e echo "Init Data..." -curl -L https://dddevcloud.quanzhan.online/web.zip -o /data/web.zip +curl -L https://git.quanzhan.store/open-source/init/raw/branch/master/resource/web.zip -o /data/web.zip chmod +x /data/web.zip cd /data && unzip web.zip @@ -32,7 +32,7 @@ systemctl enable docker echo "3. 验证 docker 是否安装成功并在容器中执行一个测试的镜像..." sudo docker run hello-world 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 docker-compose -v echo "5. 安装Docker软件..." From 75961f34410441020e1e14f080c426873d23516b Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 05:52:32 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'cengos7-system-instal?= =?UTF-8?q?l.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cengos7-system-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cengos7-system-install.sh b/cengos7-system-install.sh index a7f56ca..cde5676 100644 --- a/cengos7-system-install.sh +++ b/cengos7-system-install.sh @@ -2,6 +2,7 @@ set -e echo "Init Data..." +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 cd /data && unzip web.zip From 0fa4cbf197139e3814188fff7f4a7faeb58e5dcd Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 06:05:47 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'centos7-system-instal?= =?UTF-8?q?l.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cengos7-system-install.sh => centos7-system-install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cengos7-system-install.sh => centos7-system-install.sh (100%) diff --git a/cengos7-system-install.sh b/centos7-system-install.sh similarity index 100% rename from cengos7-system-install.sh rename to centos7-system-install.sh From ca8a41d7abb69fe5a1d4270ee2d950f04d34a2d2 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 06:13:59 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'rust-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rust-install.sh diff --git a/rust-install.sh b/rust-install.sh new file mode 100644 index 0000000..b584b19 --- /dev/null +++ b/rust-install.sh @@ -0,0 +1,29 @@ +#!/bin/sh +set -e + +echo "Init Rust..." + +echo export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static>>/etc/profile +echo export 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 \ No newline at end of file From 9ad1e15dcc418c7c203de8ced4e4d0fcfe30cbea Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 06:17:31 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'rust-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-install.sh b/rust-install.sh index b584b19..89c47de 100644 --- a/rust-install.sh +++ b/rust-install.sh @@ -4,7 +4,7 @@ set -e echo "Init Rust..." echo export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static>>/etc/profile -echo export export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup>>/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 From 95ab7dafa398f16c5dd9b7224f1f1b740e1edab7 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 06:22:38 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'rust-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-install.sh b/rust-install.sh index 89c47de..1d11fc9 100644 --- a/rust-install.sh +++ b/rust-install.sh @@ -11,7 +11,7 @@ source /etc/profile curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -tee $HOME/cargo/config <<-'EOF' +tee $HOME/.cargo/config <<-'EOF' [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' From 3230315529c27174ceb801c7694bbf55d7422772 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 06:36:41 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'rust-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust-install.sh b/rust-install.sh index 1d11fc9..94e585b 100644 --- a/rust-install.sh +++ b/rust-install.sh @@ -1,6 +1,8 @@ #!/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