Skip to content

How to build & deploy CI test runners

Dmitrii Ustiugov edited this page Mar 29, 2023 · 3 revisions

Build Runners:

Integ test runner:

git clone https://github.com/ease-lab/vhive
cd vhive
docker build -f ./scripts/github_runner/Dockerfile.github_runner ./ -t vhiveease/integ_test_runner:ubuntu20base

CRI test runner (to be deprecated)

git clone https://github.com/ease-lab/vhive
cd vhive
docker build -f ./scripts/github_runner/Dockerfile.github_runner_cri ./ -t vhiveease/cri_test_runner

Deploy runners:

git clone https://github.com/ease-lab/vhive
cd vhive
# setup the host to deploy runners
./scripts/github_runner/setup_runner_host.sh
# start the runners
./start_runners.sh <num of runners> https://github.com/<OWNER>/<REPO> <Github Access key> <[integ, cri]> [restart]

Setup a daily cron job

Add this to your crontab to restart the runners daily at 00:00

00 00 * * * [path to vHive]/start_runners.sh <num of runners> https://github.com/<OWNER>/<REPO> <Github Access key> <[integ, cri]> restart