Browse code

CRIU needs a newer version to work with the updates pulled in by containerd 1.0

Signed-off-by: Ross Boucher <rboucher@gmail.com>

Ross Boucher authored on 2017/12/05 07:45:04
Showing 1 changed files
... ...
@@ -52,6 +52,7 @@ RUN apt-get update && apt-get install -y \
52 52
 	libapparmor-dev \
53 53
 	libcap-dev \
54 54
 	libdevmapper-dev \
55
+	libnet-dev \
55 56
 	libnl-3-dev \
56 57
 	libprotobuf-c0-dev \
57 58
 	libprotobuf-dev \
... ...
@@ -94,11 +95,9 @@ ENV PATH /go/bin:/usr/local/go/bin:$PATH
94 94
 ENV GOPATH /go
95 95
 
96 96
 # Install CRIU for checkpoint/restore support
97
-ENV CRIU_VERSION 2.12.1
98
-# Install dependancy packages specific to criu
99
-RUN apt-get install libnet-dev -y && \
100
-	mkdir -p /usr/src/criu \
101
-	&& curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \
97
+ENV CRIU_VERSION 3.6
98
+RUN mkdir -p /usr/src/criu \
99
+	&& curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -C /usr/src/criu/ -xz --strip-components=1 \
102 100
 	&& cd /usr/src/criu \
103 101
 	&& make \
104 102
 	&& make install-criu