mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
jenkins: add script to create a test container
We want to execute tests in an isolated environment Signed-off-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
20088c4fcc
commit
1c1795412e
7
test/jenkins/_run_ct
Executable file
7
test/jenkins/_run_ct
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
mount --make-rprivate /
|
||||||
|
umount -l /proc
|
||||||
|
mount -t proc proc /proc/
|
||||||
|
exec "$@"
|
3
test/jenkins/run_ct
Executable file
3
test/jenkins/run_ct
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
unshare --mount --pid --fork -- $(readlink -f `dirname $0`/_run_ct) "$@"
|
Reference in New Issue
Block a user