Forked from GabyCT/gist:7bd1580e665e455bcf4df3f30f886b1f
Created
December 8, 2021 08:28
-
-
Save lynsei/281322863d18cdf76120ce3618cd49b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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