From 6c891c0dd48a52f3d136233d4211f9d610fab2b4 Mon Sep 17 00:00:00 2001 From: Gautham B A Date: Tue, 2 Feb 2021 20:39:30 +0530 Subject: [PATCH] HADOOP-17509. Parallelize building of dependencies (#2669) Signed-off-by: Akira Ajisaka --- dev-support/docker/Dockerfile | 3 ++- dev-support/docker/Dockerfile_aarch64 | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index 4d9413b72f6..cf442902d3d 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -131,6 +131,7 @@ RUN mkdir -p /opt/protobuf-src \ && tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \ && cd /opt/protobuf-src \ && ./configure --prefix=/opt/protobuf \ + && make "-j$(nproc)" \ && make install \ && cd /root \ && rm -rf /opt/protobuf-src @@ -183,7 +184,7 @@ RUN mkdir -p /opt/isa-l-src \ && cd /opt/isa-l-src \ && ./autogen.sh \ && ./configure \ - && make \ + && make "-j$(nproc)" \ && make install \ && cd /root \ && rm -rf /opt/isa-l-src diff --git a/dev-support/docker/Dockerfile_aarch64 b/dev-support/docker/Dockerfile_aarch64 index cfcfdcecccb..bdf9e0c7e59 100644 --- a/dev-support/docker/Dockerfile_aarch64 +++ b/dev-support/docker/Dockerfile_aarch64 @@ -135,6 +135,7 @@ RUN mkdir -p /opt/protobuf-src \ && tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \ && cd /opt/protobuf-src \ && ./configure --prefix=/opt/protobuf \ + && make "-j$(nproc)" \ && make install \ && cd /root \ && rm -rf /opt/protobuf-src