You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/05/24 10:20:24 UTC
[hadoop] branch trunk updated: HADOOP-17723. [build] fix the
Dockerfile for ARM (#3037)
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1576f81 HADOOP-17723. [build] fix the Dockerfile for ARM (#3037)
1576f81 is described below
commit 1576f81dfe0156514ec06b6051e5df7928a294e2
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Mon May 24 03:19:58 2021 -0700
HADOOP-17723. [build] fix the Dockerfile for ARM (#3037)
Reviewed-by: Akira Ajisaka <aa...@apache.org>
---
dev-support/docker/Dockerfile_aarch64 | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/dev-support/docker/Dockerfile_aarch64 b/dev-support/docker/Dockerfile_aarch64
index 710c989..5c26132 100644
--- a/dev-support/docker/Dockerfile_aarch64
+++ b/dev-support/docker/Dockerfile_aarch64
@@ -73,8 +73,10 @@ RUN apt-get -q update \
npm \
openjdk-11-jdk \
openjdk-8-jdk \
+ phantomjs \
pinentry-curses \
pkg-config \
+ python2.7 \
python3 \
python3-pip \
python3-pkg-resources \
@@ -155,17 +157,6 @@ RUN pip3 install pylint==2.6.0 python-dateutil==2.8.1
RUN npm install -g bower@1.8.8
###
-# Install phantomjs built for aarch64
-####
-RUN mkdir -p /opt/phantomjs \
- && curl -L -s -S \
- https://github.com/liusheng/phantomjs/releases/download/2.1.1/phantomjs-2.1.1-linux-aarch64.tar.bz2 \
- -o /opt/phantomjs/phantomjs-2.1.1-linux-aarch64.tar.bz2 \
- && tar xvjf /opt/phantomjs/phantomjs-2.1.1-linux-aarch64.tar.bz2 --strip-components 1 -C /opt/phantomjs \
- && cp /opt/phantomjs/bin/phantomjs /usr/bin/ \
- && rm -rf /opt/phantomjs
-
-###
# Avoid out of memory errors in builds
###
ENV MAVEN_OPTS -Xms256m -Xmx1536m
@@ -173,6 +164,9 @@ ENV MAVEN_OPTS -Xms256m -Xmx1536m
# Skip gpg verification when downloading Yetus via yetus-wrapper
ENV HADOOP_SKIP_YETUS_VERIFICATION true
+# Force PhantomJS to be in 'headless' mode, do not connect to Xwindow
+ENV QT_QPA_PLATFORM offscreen
+
###
# Everything past this point is either not needed for testing or breaks Yetus.
# So tell Yetus not to read the rest of the file:
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org