Update MiniKube for CI process (#4495)

* Update pre.sh

* add if func

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Reorder steps

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Upgrade minikube to 1.8.0

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
Gao Hongtao 2020-03-12 10:33:11 +08:00 committed by GitHub
parent f910679180
commit fdb816c799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -43,14 +43,14 @@ jobs:
run: |
bash ${SCRIPTS_DIR}/pre.sh
mkdir -p ${LOG_DIR}
- name: Compile all and Build docker image
run: bash ${SCRIPTS_DIR}/compile_build.sh
- name: Start minikube
run: bash ${SCRIPTS_DIR}/minikube.sh start > ${LOG_DIR}/minikube-start-log.txt 2>&1 &
- name: Wating minikube ready
run: bash ${SCRIPTS_DIR}/minikube.sh wait
- name: Setup tunnel
run: minikube tunnel --log_dir=${LOG_DIR} &
- name: Compile all and Build docker image
run: bash ${SCRIPTS_DIR}/compile_build.sh
- name: Istio install
run: bash ${INSTALL_SCRIPTS_DIR}/istio-deploy.sh
- name: SW And ES install
@ -58,6 +58,7 @@ jobs:
- name: Bookinfo demo install
run: bash ${INSTALL_SCRIPTS_DIR}/demo-deploy.sh
- uses: actions/upload-artifact@v1.0.0
if: always()
with:
name: logs
path: /tmp/skywalking

View File

@ -100,7 +100,7 @@ function startMinikubeNone() {
sudo -E minikube config set WantUpdateNotification false
sudo -E minikube config set WantReportErrorPrompt false
sudo -E minikube start --kubernetes-version=${K8S_VER#k8s-} --vm-driver=none
sudo -E minikube start --kubernetes-version=${K8S_VER#k8s-} --driver=none
}
function stopMinikube() {

View File

@ -28,7 +28,7 @@ fi
MINIKUBEVERESION=$2
if [[ "${MINIKUBEVERESION}" == "" ]]; then
MINIKUBEVERESION="minikube-v1.4.0"
MINIKUBEVERESION="minikube-v1.8.0"
fi
K8SVERSION=$3
@ -79,4 +79,5 @@ sudo add-apt-repository \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo apt-cache madison docker-ce
sudo apt-get install -y docker-ce=5:19.03.8~3-0~ubuntu-xenial docker-ce-cli=5:19.03.8~3-0~ubuntu-xenial containerd.io