From 813295bb4084073373fa51228aa134aba8345d24 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 22 May 2019 19:52:43 +0800 Subject: fix kata installation Change-Id: Ic309e4bae5285309a3fe16a5338eb72c6a881926 Signed-off-by: Guo Ruijing --- src/vagrant/kubeadm/kata/kata_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vagrant/kubeadm/kata/kata_setup.sh b/src/vagrant/kubeadm/kata/kata_setup.sh index 0264c7f..1fd77b5 100644 --- a/src/vagrant/kubeadm/kata/kata_setup.sh +++ b/src/vagrant/kubeadm/kata/kata_setup.sh @@ -18,11 +18,11 @@ set -ex ARCH=$(arch) -sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/ /' > /etc/apt/sources.list.d/kata-containers.list" -curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add - +BRANCH="${BRANCH:-stable-1.7}" +sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/xUbuntu_$(lsb_release -rs)/ /' > /etc/apt/sources.list.d/kata-containers.list" +curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add - sudo -E apt-get update sudo -E apt-get -y install kata-runtime kata-proxy kata-shim -sudo -E apt-get -y install libseccomp2 wget https://github.com/opencontainers/runc/releases/download/v1.0.0-rc6/runc.amd64 sudo cp runc.amd64 /usr/sbin/runc -- cgit 1.2.3-korg