Skip to content

Commit

Permalink
Merge pull request #2371 from kolyshkin/criu314
Browse files Browse the repository at this point in the history
Use criu 3.14
  • Loading branch information
Mrunal Patel authored May 3, 2020
2 parents 6161d25 + d2061ee commit 609ba79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GO_VERSION=1.13
ARG BATS_VERSION=v1.1.0
ARG CRIU_VERSION=v3.13
ARG CRIU_VERSION=v3.14

FROM golang:${GO_VERSION}-buster
ARG DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -63,10 +63,6 @@ RUN mkdir -p /usr/src/criu \
&& curl -fsSL https://github.com/checkpoint-restore/criu/archive/${CRIU_VERSION}.tar.gz | tar -C /usr/src/criu/ -xz --strip-components=1 \
&& cd /usr/src/criu \
&& echo 1 > .gitid \
&& curl -sSL https://github.com/checkpoint-restore/criu/commit/4c27b3db4f4325a311d8bfa9a50ea3efb4d6e377.patch | patch -p1 \
&& curl -sSL https://github.com/checkpoint-restore/criu/commit/aac41164b2cd7f0d2047f207b32844524682e43f.patch | patch -p1 \
&& curl -sSL https://github.com/checkpoint-restore/criu/commit/6f19249b2565f3f7c0a1f8f65b4ae180e8f7f34b.patch | patch -p1 \
&& curl -sSL https://github.com/checkpoint-restore/criu/commit/378337a496ca759848180bc5411e4446298c5e4e.patch | patch -p1 \
&& make install-criu \
&& cd - \
&& rm -rf /usr/src/criu
Expand Down
17 changes: 6 additions & 11 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ Vagrant.configure("2") do |config|
v.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
curl -OSs https://kojipkgs.fedoraproject.org/packages/criu/3.14/1.fc32/x86_64/criu-3.14-1.fc32.x86_64.rpm
cat << EOF | dnf -y shell
config exclude kernel,kernel-core
config install_weak_deps false
localinstall criu-3.14-1.fc32.x86_64.rpm
update
install iptables gcc make golang-go libseccomp-devel bats jq \
patch protobuf protobuf-c protobuf-c-compiler protobuf-c-devel protobuf-compiler \
protobuf-devel libnl3-devel libcap-devel libnet-devel \
nftables-devel libbsd-devel gnutls-devel
install iptables gcc make golang-go libseccomp-devel bats jq git-core
ts run
EOF
dnf clean all
rm -f criu-3.14-1.fc32.x86_64.rpm
# Add a user for rootless tests
useradd -u2000 -m -d/home/rootless -s/bin/bash rootless
Expand All @@ -30,12 +32,5 @@ EOF
. /vagrant/tests/integration/multi-arch.bash \
&& mkdir /busybox \
&& curl -fsSL $(get_busybox) | tar xfJC - /busybox
# Apr 25, 2020 (master)
( git clone https://github.com/checkpoint-restore/criu.git /usr/src/criu \
&& cd /usr/src/criu \
&& git checkout 5c5e7695a51318b17e3d982df8231ac83971641c \
&& make install-criu )
rm -rf /usr/src/criu
SHELL
end

0 comments on commit 609ba79

Please sign in to comment.