easzup:使用curl替换wget

pull/641/head
gjmzj 2019-06-23 08:30:16 +08:00
parent e48ded84df
commit eb6ff79735
1 changed files with 6 additions and 4 deletions

View File

@ -30,11 +30,12 @@ function install_docker() {
echo "[INFO] docker binaries already existed"
else
echo -e "[INFO] \033[33mdownloading docker binaries\033[0m $DOCKER_VER"
wget -c -P /etc/ansible/down "$DOCKER_URL" || { echo "[ERROR] downloading docker failed"; exit 1; }
curl -C- -O --retry 3 "$DOCKER_URL" || { echo "[ERROR] downloading docker failed"; exit 1; }
fi
tar zxf /etc/ansible/down/docker-${DOCKER_VER}.tgz -C /etc/ansible/down
mv /etc/ansible/down/docker/* /opt/kube/bin
tar zxf ./docker-${DOCKER_VER}.tgz -C /etc/ansible/down && \
mv ./docker-${DOCKER_VER}.tgz /etc/ansible/down && \
mv /etc/ansible/down/docker/* /opt/kube/bin && \
ln -sf /opt/kube/bin/docker /bin/docker
echo "[INFO] generate docker service file"
@ -136,6 +137,7 @@ function get_ext_bin() {
}
function get_offline_image() {
# images needed by k8s cluster
calicoVer=v3.4.4
corednsVer=1.5.0
dashboardVer=v1.10.1