HADOOP-17509. Parallelize building of dependencies (#2669)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Gautham B A 2021-02-02 20:39:30 +05:30 committed by GitHub
parent 18978f2e20
commit 6c891c0dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -131,6 +131,7 @@ RUN mkdir -p /opt/protobuf-src \
&& tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \ && tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \
&& cd /opt/protobuf-src \ && cd /opt/protobuf-src \
&& ./configure --prefix=/opt/protobuf \ && ./configure --prefix=/opt/protobuf \
&& make "-j$(nproc)" \
&& make install \ && make install \
&& cd /root \ && cd /root \
&& rm -rf /opt/protobuf-src && rm -rf /opt/protobuf-src
@ -183,7 +184,7 @@ RUN mkdir -p /opt/isa-l-src \
&& cd /opt/isa-l-src \ && cd /opt/isa-l-src \
&& ./autogen.sh \ && ./autogen.sh \
&& ./configure \ && ./configure \
&& make \ && make "-j$(nproc)" \
&& make install \ && make install \
&& cd /root \ && cd /root \
&& rm -rf /opt/isa-l-src && rm -rf /opt/isa-l-src

View File

@ -135,6 +135,7 @@ RUN mkdir -p /opt/protobuf-src \
&& tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \ && tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \
&& cd /opt/protobuf-src \ && cd /opt/protobuf-src \
&& ./configure --prefix=/opt/protobuf \ && ./configure --prefix=/opt/protobuf \
&& make "-j$(nproc)" \
&& make install \ && make install \
&& cd /root \ && cd /root \
&& rm -rf /opt/protobuf-src && rm -rf /opt/protobuf-src