浏览代码

Enable CRIU on non-amd64 architectures

Since the recent release of CRIU has already supported other
arches such as AArch64, ppc64le, and s390x, so we can enable
it now.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
Dennis Chen 7 年之前
父节点
当前提交
7fd54a7a48
共有 1 个文件被更改,包括 2 次插入10 次删除
  1. 2 10
      Dockerfile

+ 2 - 10
Dockerfile

@@ -44,9 +44,7 @@ FROM base AS criu
 # Install CRIU for checkpoint/restore support
 ENV CRIU_VERSION 3.6
 # Install dependancy packages specific to criu
-RUN case $(uname -m) in \
-    x86_64) \
-	apt-get update && apt-get install -y \
+RUN apt-get update && apt-get install -y \
 	libnet-dev \
 	libprotobuf-c0-dev \
 	libprotobuf-dev \
@@ -59,13 +57,7 @@ RUN case $(uname -m) in \
 	&& curl -sSL https://github.com/checkpoint-restore/criu/archive/v${CRIU_VERSION}.tar.gz | tar -C /usr/src/criu/ -xz --strip-components=1 \
 	&& cd /usr/src/criu \
 	&& make \
-	&& make PREFIX=/opt/criu install-criu ;\
-	;; \
-    armv7l|aarch64|ppc64le|s390x) \
-	mkdir -p /opt/criu; \
-	;; \
-    esac
-
+	&& make PREFIX=/opt/criu install-criu
 
 FROM base AS registry
 # Install two versions of the registry. The first is an older version that