Skip to content

Commit

Permalink
0.9.9.3
Browse files Browse the repository at this point in the history
#####
1, 更新软件源加速

#####
  • Loading branch information
Xingsandesu committed Jan 20, 2024
1 parent 80e7dec commit fdbf71a
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions .shell/get-taichi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -676,14 +676,17 @@ install_taichi() {
mkdir -p /etc/docker
fi

cat << EOF > /etc/docker/daemon.json
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
echo "Docker配置覆盖完成"
systemctl daemon-reload
systemctl restart docker


mkdir -p /usr/taichi
Expand Down Expand Up @@ -758,13 +761,17 @@ python_install_taichi() {
mkdir -p /etc/docker
fi

cat << EOF > /etc/docker/daemon.json
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
systemctl daemon-reload
systemctl restart docker
echo "Docker配置覆盖完成"
echo "系统更新并安装依赖"
if [ -f /etc/os-release ]; then
Expand Down Expand Up @@ -886,13 +893,17 @@ docker_install_taichi() {
mkdir -p /etc/docker
fi

cat << EOF > /etc/docker/daemon.json
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
EOF
systemctl daemon-reload
systemctl restart docker
echo "Docker配置覆盖完成"

mkdir -p /usr/taichi
Expand Down

0 comments on commit fdbf71a

Please sign in to comment.