Browse files

Add CRIU patch to fix checkpoint test

For the newly integrated feature to use CRIU configuration files the
test is broken without an additional CRIU patch.

The test changes CRIU's log file. Changing the log file is unfortunately
the only thing which is in broken in CRIU 3.11. But it is the easiest
option for testing. With CRIU 3.12 this will be fixed. All other CRIU
options can be changed with a CRIU configuration file.

With this change the CRIU 3.11 feature can be merged into runc with a
test and for the user it should just work, if they are not trying to
change CRIU's log file.

Signed-off-by: Adrian Reber <>
  • Loading branch information...
adrianreber committed Dec 20, 2018
1 parent 6f3e13c commit 403986c5dd078a9d528794aee0b38dc742ee072b
Showing with 4 additions and 0 deletions.
  1. +4 −0 Dockerfile
@@ -45,10 +45,14 @@ RUN cd /tmp \
&& rm -rf /tmp/bats

# install criu
# For CRIU 3.11 one patch is needed for the test 'checkpoint and restore with container specific CRIU config'
# This should be no longer necessary with CRIU 3.12
# See
RUN mkdir -p /usr/src/criu \
&& curl -sSL${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \
&& cd /usr/src/criu \
&& curl | patch -p1 \
&& make install-criu \
&& rm -rf /usr/src/criu

0 comments on commit 403986c

Please sign in to comment.