perf: 加速源码下载速度

减小下载容量
pull/485/head
waiting 2019-03-19 16:51:06 +08:00 committed by jmgao
parent 4433e2f6f8
commit b2d2ceb4bc
5 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# NOTE: Prepare following Requirements and Build the image "kubeasz:$TAG"
# Requirement 1: git clone https://github.com/gjmzj/kubeasz.git
# Requirement 1: git clone --depth=1 https://github.com/gjmzj/kubeasz.git
# Requirement 2: download binaries at https://pan.baidu.com/s/1c4RFaA, and put into dir 'kubeasz/bin'
# Build: docker build -t kubeasz:$TAG .

View File

@ -82,7 +82,7 @@ ssh-copy-id $IPs #$IPs为所有节点地址包括自身按照提示输入yes
``` bash
# 方式一使用git clone
git clone https://github.com/gjmzj/kubeasz.git
git clone --depth=1 https://github.com/gjmzj/kubeasz.git
mkdir -p /etc/ansible
mv kubeasz/* /etc/ansible
# 方式二:从发布页面 https://github.com/gjmzj/kubeasz/releases 下载源码解压到同样目录

View File

@ -35,7 +35,7 @@ docker exec -it kubeasz easzctl start-aio
``` bash
cd /etc/ansible/dockerfiles/kubeasz
# 克隆代码
git clone https://github.com/gjmzj/kubeasz.git
git clone --depth=1 https://github.com/gjmzj/kubeasz.git
# 手动下载二进制文件放入上述 git clone 完成目录 kubeasz/bin
docker build -t kubeasz:$TAG .
```

View File

@ -69,7 +69,7 @@ if __name__ == '__main__':
``` bash
# 方式一使用git clone
git clone https://github.com/gjmzj/kubeasz.git
git clone --depth=1 https://github.com/gjmzj/kubeasz.git
mkdir -p /etc/ansible
mv kubeasz/* /etc/ansible
# 方式二:从发布页面 https://github.com/gjmzj/kubeasz/releases 下载源码解压到同样目录

View File

@ -68,7 +68,7 @@ setup_ansible_k8s() {
pip install pip --upgrade -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install --no-cache-dir ansible -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
git clone https://github.com/gjmzj/kubeasz.git
git clone --depth=1 https://github.com/gjmzj/kubeasz.git
mv kubeasz /etc/ansible
# Download from CDN & Move bin files