mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
Cirrus: Install CRIU in test images
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -19,6 +19,7 @@ env:
|
|||||||
FEDORA_CNI_COMMIT: "412b6d31280682bb4fab4446f113c22ff1886554"
|
FEDORA_CNI_COMMIT: "412b6d31280682bb4fab4446f113c22ff1886554"
|
||||||
CNI_COMMIT: "7480240de9749f9a0a5c8614b17f1f03e0c06ab9"
|
CNI_COMMIT: "7480240de9749f9a0a5c8614b17f1f03e0c06ab9"
|
||||||
CRIO_COMMIT: "662dbb31b5d4f5ed54511a47cde7190c61c28677"
|
CRIO_COMMIT: "662dbb31b5d4f5ed54511a47cde7190c61c28677"
|
||||||
|
CRIU_COMMIT: "584cbe4643c3fc7dc901ff08bf923ca0fe7326f9"
|
||||||
RUNC_COMMIT: "ad0f5255060d36872be04de22f8731f38ef2d7b1"
|
RUNC_COMMIT: "ad0f5255060d36872be04de22f8731f38ef2d7b1"
|
||||||
# Enable debugging delay on test-failure if non-empty.
|
# Enable debugging delay on test-failure if non-empty.
|
||||||
FLAKE_DEBUG_DELAY: 1
|
FLAKE_DEBUG_DELAY: 1
|
||||||
@ -42,11 +43,11 @@ full_vm_testing_task:
|
|||||||
# 'matrix' combinations. All run in parallel.
|
# 'matrix' combinations. All run in parallel.
|
||||||
matrix:
|
matrix:
|
||||||
# Images are generated separetly, from build_images_task (below)
|
# Images are generated separetly, from build_images_task (below)
|
||||||
image_name: "ubuntu-1804-bionic-v20180911-libpod-5763563410948096"
|
image_name: "ubuntu-1804-bionic-v20180911-libpod-fce09afe"
|
||||||
# TODO: Make these work (also build_images_task below)
|
# TODO: Make these work (also build_images_task below)
|
||||||
#image_name: "rhel-server-ec2-7-5-165-1-libpod-5358668723781632"
|
#image_name: "rhel-server-ec2-7-5-165-1-libpod-fce09afe"
|
||||||
#image_name: "centos-7-v20180911-libpod-5358668723781632"
|
#image_name: "centos-7-v20180911-libpod-fce09afe"
|
||||||
#image_name: "fedora-cloud-base-28-1-1-7-libpod-5358668723781632"
|
#image_name: "fedora-cloud-base-28-1-1-7-libpod-fce09afe"
|
||||||
|
|
||||||
timeout_in: 120m
|
timeout_in: 120m
|
||||||
|
|
||||||
|
|||||||
@ -202,6 +202,21 @@ install_conmon(){
|
|||||||
sudo install -D -m 755 bin/conmon /usr/libexec/podman/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
|
# Runs in testing VM, not image building
|
||||||
install_testing_dependencies() {
|
install_testing_dependencies() {
|
||||||
echo "Installing ginkgo, gomega, and easyjson into \$GOPATH=$GOPATH"
|
echo "Installing ginkgo, gomega, and easyjson into \$GOPATH=$GOPATH"
|
||||||
|
|||||||
@ -12,6 +12,7 @@ req_env_var "
|
|||||||
SCRIPT_BASE $SCRIPT_BASE
|
SCRIPT_BASE $SCRIPT_BASE
|
||||||
CNI_COMMIT $CNI_COMMIT
|
CNI_COMMIT $CNI_COMMIT
|
||||||
CRIO_COMMIT $CRIO_COMMIT
|
CRIO_COMMIT $CRIO_COMMIT
|
||||||
|
CRIU_COMMIT $CRIU_COMMIT
|
||||||
"
|
"
|
||||||
|
|
||||||
install_ooe
|
install_ooe
|
||||||
@ -24,35 +25,46 @@ ooe.sh sudo yum -y update
|
|||||||
ooe.sh sudo yum -y install centos-release-scl epel-release
|
ooe.sh sudo yum -y install centos-release-scl epel-release
|
||||||
|
|
||||||
ooe.sh sudo yum -y install \
|
ooe.sh sudo yum -y install \
|
||||||
atomic-registries \
|
atomic-registries \
|
||||||
btrfs-progs-devel \
|
btrfs-progs-devel \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
device-mapper-devel \
|
device-mapper-devel \
|
||||||
findutils \
|
findutils \
|
||||||
glib2-devel \
|
glib2-devel \
|
||||||
glibc-static \
|
glibc-static \
|
||||||
gnupg \
|
gnupg \
|
||||||
golang \
|
golang \
|
||||||
golang-github-cpuguy83-go-md2man \
|
golang-github-cpuguy83-go-md2man \
|
||||||
golang-github-cpuguy83-go-md2man \
|
golang-github-cpuguy83-go-md2man \
|
||||||
gpgme-devel \
|
gpgme-devel \
|
||||||
iptables \
|
iptables \
|
||||||
libassuan-devel \
|
libassuan-devel \
|
||||||
libseccomp-devel \
|
libcap-devel \
|
||||||
libselinux-devel \
|
libnet \
|
||||||
lsof \
|
libnet-devel \
|
||||||
make \
|
libnl3-devel \
|
||||||
nmap-ncat \
|
libseccomp-devel \
|
||||||
ostree-devel \
|
libselinux-devel \
|
||||||
python \
|
lsof \
|
||||||
python3-dateutil \
|
make \
|
||||||
python3-psutil \
|
nmap-ncat \
|
||||||
python3-pytoml \
|
ostree-devel \
|
||||||
runc \
|
protobuf \
|
||||||
skopeo-containers \
|
protobuf-c \
|
||||||
unzip \
|
protobuf-c-devel \
|
||||||
which \
|
protobuf-compiler \
|
||||||
xz
|
protobuf-devel \
|
||||||
|
protobuf-python \
|
||||||
|
python \
|
||||||
|
python2-future \
|
||||||
|
python3-dateutil \
|
||||||
|
python3-psutil \
|
||||||
|
python3-pytoml \
|
||||||
|
runc \
|
||||||
|
skopeo-containers \
|
||||||
|
unzip \
|
||||||
|
which \
|
||||||
|
xz
|
||||||
|
|
||||||
install_scl_git
|
install_scl_git
|
||||||
|
|
||||||
@ -62,6 +74,8 @@ install_buildah
|
|||||||
|
|
||||||
install_conmon
|
install_conmon
|
||||||
|
|
||||||
|
install_criu
|
||||||
|
|
||||||
install_packer_copied_files
|
install_packer_copied_files
|
||||||
|
|
||||||
rh_finalize
|
rh_finalize
|
||||||
|
|||||||
@ -12,6 +12,7 @@ req_env_var "
|
|||||||
SCRIPT_BASE $SCRIPT_BASE
|
SCRIPT_BASE $SCRIPT_BASE
|
||||||
CNI_COMMIT $CNI_COMMIT
|
CNI_COMMIT $CNI_COMMIT
|
||||||
CRIO_COMMIT $CRIO_COMMIT
|
CRIO_COMMIT $CRIO_COMMIT
|
||||||
|
CRIU_COMMIT $CRIU_COMMIT
|
||||||
RUNC_COMMIT $RUNC_COMMIT
|
RUNC_COMMIT $RUNC_COMMIT
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -40,6 +41,10 @@ ooe.sh sudo dnf install -y \
|
|||||||
gpgme-devel \
|
gpgme-devel \
|
||||||
iptables \
|
iptables \
|
||||||
libassuan-devel \
|
libassuan-devel \
|
||||||
|
libcap-devel \
|
||||||
|
libnet \
|
||||||
|
libnet-devel \
|
||||||
|
libnl3-devel \
|
||||||
libseccomp-devel \
|
libseccomp-devel \
|
||||||
libselinux-devel \
|
libselinux-devel \
|
||||||
lsof \
|
lsof \
|
||||||
@ -47,14 +52,21 @@ ooe.sh sudo dnf install -y \
|
|||||||
nmap-ncat \
|
nmap-ncat \
|
||||||
ostree-devel \
|
ostree-devel \
|
||||||
procps-ng \
|
procps-ng \
|
||||||
|
protobuf \
|
||||||
|
protobuf-c \
|
||||||
|
protobuf-c-devel \
|
||||||
|
protobuf-compiler \
|
||||||
|
protobuf-devel \
|
||||||
|
protobuf-python \
|
||||||
python \
|
python \
|
||||||
|
python2-future \
|
||||||
python3-dateutil \
|
python3-dateutil \
|
||||||
python3-psutil \
|
python3-psutil \
|
||||||
python3-pytoml \
|
python3-pytoml \
|
||||||
runc \
|
runc \
|
||||||
skopeo-containers \
|
skopeo-containers \
|
||||||
slirp4netns \
|
slirp4netns \
|
||||||
which\
|
which \
|
||||||
xz
|
xz
|
||||||
|
|
||||||
install_varlink
|
install_varlink
|
||||||
@ -65,6 +77,8 @@ install_buildah
|
|||||||
|
|
||||||
install_conmon
|
install_conmon
|
||||||
|
|
||||||
|
install_criu
|
||||||
|
|
||||||
install_packer_copied_files
|
install_packer_copied_files
|
||||||
|
|
||||||
rh_finalize # N/B: Halts system!
|
rh_finalize # N/B: Halts system!
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
"FEDORA_CNI_COMMIT": "{{env `FEDORA_CNI_COMMIT`}}",
|
"FEDORA_CNI_COMMIT": "{{env `FEDORA_CNI_COMMIT`}}",
|
||||||
"CNI_COMMIT": "{{env `CNI_COMMIT`}}",
|
"CNI_COMMIT": "{{env `CNI_COMMIT`}}",
|
||||||
"CRIO_COMMIT": "{{env `CRIO_COMMIT`}}",
|
"CRIO_COMMIT": "{{env `CRIO_COMMIT`}}",
|
||||||
|
"CRIU_COMMIT": "{{env `CRIU_COMMIT`}}",
|
||||||
"RUNC_COMMIT": "{{env `RUNC_COMMIT`}}",
|
"RUNC_COMMIT": "{{env `RUNC_COMMIT`}}",
|
||||||
|
|
||||||
"CENTOS_BASE_IMAGE": "{{env `CENTOS_BASE_IMAGE`}}" ,
|
"CENTOS_BASE_IMAGE": "{{env `CENTOS_BASE_IMAGE`}}" ,
|
||||||
@ -87,6 +88,7 @@
|
|||||||
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
||||||
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
||||||
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
||||||
|
"CRIU_COMMIT={{user `CRIU_COMMIT`}}",
|
||||||
"RUNC_COMMIT={{user `RUNC_COMMIT`}}",
|
"RUNC_COMMIT={{user `RUNC_COMMIT`}}",
|
||||||
"RHSM_COMMAND={{user `RHSM_COMMAND`}}"
|
"RHSM_COMMAND={{user `RHSM_COMMAND`}}"
|
||||||
]
|
]
|
||||||
@ -98,6 +100,7 @@
|
|||||||
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
||||||
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
||||||
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
||||||
|
"CRIU_COMMIT={{user `CRIU_COMMIT`}}",
|
||||||
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
||||||
]
|
]
|
||||||
},{
|
},{
|
||||||
@ -108,6 +111,7 @@
|
|||||||
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
||||||
"CNI_COMMIT={{user `FEDORA_CNI_COMMIT`}}",
|
"CNI_COMMIT={{user `FEDORA_CNI_COMMIT`}}",
|
||||||
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
||||||
|
"CRIU_COMMIT={{user `CRIU_COMMIT`}}",
|
||||||
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
||||||
]
|
]
|
||||||
},{
|
},{
|
||||||
@ -118,6 +122,7 @@
|
|||||||
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
"SCRIPT_BASE={{user `SCRIPT_BASE`}}",
|
||||||
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
"CNI_COMMIT={{user `CNI_COMMIT`}}",
|
||||||
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
"CRIO_COMMIT={{user `CRIO_COMMIT`}}",
|
||||||
|
"CRIU_COMMIT={{user `CRIU_COMMIT`}}",
|
||||||
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
"RUNC_COMMIT={{user `RUNC_COMMIT`}}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,7 @@ req_env_var "
|
|||||||
SCRIPT_BASE $SCRIPT_BASE
|
SCRIPT_BASE $SCRIPT_BASE
|
||||||
CNI_COMMIT $CNI_COMMIT
|
CNI_COMMIT $CNI_COMMIT
|
||||||
CRIO_COMMIT $CRIO_COMMIT
|
CRIO_COMMIT $CRIO_COMMIT
|
||||||
|
CRIU_COMMIT $CRIU_COMMIT
|
||||||
RHSM_COMMAND $RHSM_COMMAND
|
RHSM_COMMAND $RHSM_COMMAND
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -62,37 +63,48 @@ gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
|
|||||||
EOM
|
EOM
|
||||||
|
|
||||||
ooe.sh sudo yum -y install \
|
ooe.sh sudo yum -y install \
|
||||||
atomic-registries \
|
atomic-registries \
|
||||||
btrfs-progs-devel \
|
btrfs-progs-devel \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
device-mapper-devel \
|
device-mapper-devel \
|
||||||
findutils \
|
findutils \
|
||||||
glib2-devel \
|
glib2-devel \
|
||||||
glibc-static \
|
glibc-static \
|
||||||
gnupg \
|
gnupg \
|
||||||
golang \
|
golang \
|
||||||
golang-github-cpuguy83-go-md2man \
|
golang-github-cpuguy83-go-md2man \
|
||||||
golang-github-cpuguy83-go-md2man \
|
golang-github-cpuguy83-go-md2man \
|
||||||
google-compute-engine \
|
google-compute-engine \
|
||||||
google-compute-engine-oslogin \
|
google-compute-engine-oslogin \
|
||||||
gpgme-devel \
|
gpgme-devel \
|
||||||
iptables \
|
iptables \
|
||||||
libassuan-devel \
|
libassuan-devel \
|
||||||
libseccomp-devel \
|
libcap-devel \
|
||||||
libselinux-devel \
|
libnet \
|
||||||
lsof \
|
libnet-devel \
|
||||||
make \
|
libnl3-devel \
|
||||||
nmap-ncat \
|
libseccomp-devel \
|
||||||
ostree-devel \
|
libselinux-devel \
|
||||||
python \
|
lsof \
|
||||||
python34-dateutil \
|
make \
|
||||||
python34-psutil \
|
nmap-ncat \
|
||||||
python34-pytoml \
|
ostree-devel \
|
||||||
runc \
|
protobuf \
|
||||||
skopeo-containers \
|
protobuf-c \
|
||||||
unzip \
|
protobuf-c-devel \
|
||||||
which \
|
protobuf-compiler \
|
||||||
xz
|
protobuf-devel \
|
||||||
|
protobuf-python \
|
||||||
|
python \
|
||||||
|
python2-future \
|
||||||
|
python34-dateutil \
|
||||||
|
python34-psutil \
|
||||||
|
python34-pytoml \
|
||||||
|
runc \
|
||||||
|
skopeo-containers \
|
||||||
|
unzip \
|
||||||
|
which \
|
||||||
|
xz
|
||||||
|
|
||||||
install_scl_git
|
install_scl_git
|
||||||
|
|
||||||
@ -102,6 +114,8 @@ install_buildah
|
|||||||
|
|
||||||
install_conmon
|
install_conmon
|
||||||
|
|
||||||
|
install_criu
|
||||||
|
|
||||||
install_packer_copied_files
|
install_packer_copied_files
|
||||||
|
|
||||||
exit_handler # release subscription!
|
exit_handler # release subscription!
|
||||||
|
|||||||
@ -12,6 +12,7 @@ req_env_var "
|
|||||||
SCRIPT_BASE $SCRIPT_BASE
|
SCRIPT_BASE $SCRIPT_BASE
|
||||||
CNI_COMMIT $CNI_COMMIT
|
CNI_COMMIT $CNI_COMMIT
|
||||||
CRIO_COMMIT $CRIO_COMMIT
|
CRIO_COMMIT $CRIO_COMMIT
|
||||||
|
CRIU_COMMIT $CRIU_COMMIT
|
||||||
RUNC_COMMIT $RUNC_COMMIT
|
RUNC_COMMIT $RUNC_COMMIT
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -34,8 +35,8 @@ ooe.sh sudo apt-get -qq install --no-install-recommends \
|
|||||||
e2fslibs-dev \
|
e2fslibs-dev \
|
||||||
gawk \
|
gawk \
|
||||||
gettext \
|
gettext \
|
||||||
golang \
|
|
||||||
go-md2man \
|
go-md2man \
|
||||||
|
golang \
|
||||||
iptables \
|
iptables \
|
||||||
libaio-dev \
|
libaio-dev \
|
||||||
libapparmor-dev \
|
libapparmor-dev \
|
||||||
@ -46,18 +47,22 @@ ooe.sh sudo apt-get -qq install --no-install-recommends \
|
|||||||
libglib2.0-dev \
|
libglib2.0-dev \
|
||||||
libgpgme11-dev \
|
libgpgme11-dev \
|
||||||
liblzma-dev \
|
liblzma-dev \
|
||||||
|
libnet1 \
|
||||||
|
libnet1-dev \
|
||||||
|
libnl-3-dev \
|
||||||
libostree-dev \
|
libostree-dev \
|
||||||
libprotobuf-c0-dev \
|
libprotobuf-c0-dev \
|
||||||
libprotobuf-dev \
|
libprotobuf-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libtool \
|
|
||||||
libudev-dev \
|
libudev-dev \
|
||||||
lsof \
|
lsof \
|
||||||
netcat \
|
netcat \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
protobuf-c-compiler \
|
protobuf-c-compiler \
|
||||||
protobuf-compiler \
|
protobuf-compiler \
|
||||||
|
python-future \
|
||||||
python-minimal \
|
python-minimal \
|
||||||
|
python-protobuf \
|
||||||
python3-dateutil \
|
python3-dateutil \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-psutil \
|
python3-psutil \
|
||||||
@ -77,6 +82,8 @@ install_runc
|
|||||||
|
|
||||||
install_conmon
|
install_conmon
|
||||||
|
|
||||||
|
install_criu
|
||||||
|
|
||||||
install_cni_plugins
|
install_cni_plugins
|
||||||
|
|
||||||
install_buildah
|
install_buildah
|
||||||
|
|||||||
Reference in New Issue
Block a user