summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2019-05-22 19:52:43 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2019-05-22 19:52:43 +0800
commit813295bb4084073373fa51228aa134aba8345d24 (patch)
tree5e804a75fb83c82672ef15c96b0629c574bbbe3b /src
parent5b7b8cb4b0dbe698c86ccd5e7dff8756f64c3af0 (diff)
fix kata installation
Change-Id: Ic309e4bae5285309a3fe16a5338eb72c6a881926 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/vagrant/kubeadm/kata/kata_setup.sh6
1 files changed, 3 insertions, 3 deletions
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