From 89b5484ad2969ad139986da1ffd6855d708824b1 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 16 Oct 2018 15:53:16 -0400 Subject: Cirrus: Install CRIU in test images Signed-off-by: Chris Evich --- contrib/cirrus/lib.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'contrib/cirrus/lib.sh') diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index 1b61fd5ec..c6cac44ec 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -202,6 +202,21 @@ install_conmon(){ sudo install -D -m 755 bin/conmon /usr/libexec/podman/conmon } +install_criu(){ + echo "Installing CRIU from commit $CRIU_COMMIT" + req_env_var " + CRIU_COMMIT $CRIU_COMMIT + " + DEST="/tmp/criu" + rm -rf "$DEST" + ooe.sh git clone https://github.com/checkpoint-restore/criu.git "$DEST" + cd $DEST + ooe.sh git fetch origin --tags + ooe.sh git checkout -q "$CRIU_COMMIT" + ooe.sh make + sudo install -D -m 755 criu/criu /usr/sbin/ +} + # Runs in testing VM, not image building install_testing_dependencies() { echo "Installing ginkgo, gomega, and easyjson into \$GOPATH=$GOPATH" -- cgit v1.2.3-54-g00ecf