Skip to content

Commit 6354405

Browse files
committed
HADOOP-17723. [build] fix the Dockerfile for ARM
Change-Id: I8a2031ee1e532f5ecbf32d679d850be4fb80c8d1
1 parent c807381 commit 6354405

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

dev-support/docker/Dockerfile_aarch64

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ RUN apt-get -q update \
8080
python3-pkg-resources \
8181
python3-setuptools \
8282
python3-wheel \
83+
python2.7 \
8384
rsync \
8485
shellcheck \
8586
software-properties-common \
8687
sudo \
8788
valgrind \
8889
zlib1g-dev \
90+
phantomjs \
8991
&& apt-get clean \
9092
&& rm -rf /var/lib/apt/lists/*
9193

@@ -150,17 +152,6 @@ RUN pip3 install pylint==2.6.0 python-dateutil==2.8.1
150152
# hadolint ignore=DL3008
151153
RUN npm install -g [email protected]
152154

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

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

0 commit comments

Comments
 (0)