Skip to content

Commit 1aaec69

Browse files
committed
HADOOP-17723. [build] fix the Dockerfile for ARM (#3037)
Reviewed-by: Akira Ajisaka <[email protected]> (cherry picked from commit 1576f81) (cherry picked from commit 745a2f5)
1 parent d77bbdb commit 1aaec69

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

dev-support/docker/Dockerfile_aarch64

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ RUN apt-get -q update \
6969
maven \
7070
openjdk-11-jdk \
7171
openjdk-8-jdk \
72+
phantomjs \
7273
pinentry-curses \
7374
pkg-config \
75+
python2.7 \
7476
python3 \
7577
python3-pip \
7678
python3-pkg-resources \
@@ -149,17 +151,6 @@ RUN curl -s -S https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
149151
&& apt-get clean \
150152
&& rm -rf /var/lib/apt/lists/*
151153

152-
###
153-
# Install phantomjs built for aarch64
154-
####
155-
RUN mkdir -p /opt/phantomjs \
156-
&& curl -L -s -S \
157-
https://github.com/liusheng/phantomjs/releases/download/2.1.1/phantomjs-2.1.1-linux-aarch64.tar.bz2 \
158-
-o /opt/phantomjs/phantomjs-2.1.1-linux-aarch64.tar.bz2 \
159-
&& tar xvjf /opt/phantomjs/phantomjs-2.1.1-linux-aarch64.tar.bz2 --strip-components 1 -C /opt/phantomjs \
160-
&& cp /opt/phantomjs/bin/phantomjs /usr/bin/ \
161-
&& rm -rf /opt/phantomjs
162-
163154
###
164155
# Avoid out of memory errors in builds
165156
###
@@ -168,6 +159,9 @@ ENV MAVEN_OPTS -Xms256m -Xmx1536m
168159
# Skip gpg verification when downloading Yetus via yetus-wrapper
169160
ENV HADOOP_SKIP_YETUS_VERIFICATION true
170161

162+
# Force PhantomJS to be in 'headless' mode, do not connect to Xwindow
163+
ENV QT_QPA_PLATFORM offscreen
164+
171165
###
172166
# Everything past this point is either not needed for testing or breaks Yetus.
173167
# So tell Yetus not to read the rest of the file:

0 commit comments

Comments
 (0)