Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lynsei/281322863d18cdf76120ce3618cd49b7 to your computer and use it in GitHub Desktop.
Save lynsei/281322863d18cdf76120ce3618cd49b7 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
sudo rm -rf /etc/docker/daemon.json || true
sudo rm -rf ${WORKSPACE}/go
export CRI_CONTAINERD="yes"
export CRI_RUNTIME="containerd"
export KATA_HYPERVISOR="qemu"
export KUBERNETES="yes"
export GOPATH=${WORKSPACE}/go
mkdir -p ${GOPATH}
export PATH=${GOPATH}/bin:/usr/local/go/bin:/usr/sbin:/sbin:${PATH}
tests_repo=${tests_repo:-github.com/kata-containers/tests}
# Name of the repo that we are going to test
export kata_repo=$1
kata_repo_dir=${GOPATH}/src/${kata_repo}
tests_repo_dir=${GOPATH}/src/${tests_repo}
# Get the tests repository
sudo rm -rf ${tests_repo_dir}
mkdir -p $(dirname ${tests_repo_dir})
[ -d ${tests_repo_dir} ] || git clone https://${tests_repo}.git ${tests_repo_dir}
#${GOPATH}/src/${tests_repo}/.ci/install_go.sh -f 1.16.5
#${GOPATH}/src/${tests_repo}/cmd/container-manager/manage_ctr_mgr.sh docker install -f
cd ${GOPATH}/src/${tests_repo}
.ci/setup.sh
${GOPATH}/src/${tests_repo}/.ci/install_go.sh -f 1.16.5
sudo -E PATH="$PATH" CRI_RUNTIME="containerd" bash -c "make pmem"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment