HADOOP-17084 Update Dockerfile_aarch64 to use Bionic (#2103). Contributed by zhaorenhai.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
(cherry picked from commit 6c57be4897
)
This commit is contained in:
parent
118a5747f8
commit
c7bab342ee
@ -17,7 +17,7 @@
|
|||||||
# Dockerfile for installing the necessary dependencies for building Hadoop.
|
# Dockerfile for installing the necessary dependencies for building Hadoop.
|
||||||
# See BUILDING.txt.
|
# See BUILDING.txt.
|
||||||
|
|
||||||
FROM ubuntu:xenial
|
FROM ubuntu:bionic
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
@ -35,24 +35,26 @@ ENV DEBCONF_TERSE true
|
|||||||
######
|
######
|
||||||
# Install common dependencies from packages. Versions here are either
|
# Install common dependencies from packages. Versions here are either
|
||||||
# sufficient or irrelevant.
|
# sufficient or irrelevant.
|
||||||
#
|
|
||||||
# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default
|
|
||||||
# Ubuntu Java. See Java section below!
|
|
||||||
######
|
######
|
||||||
# hadolint ignore=DL3008
|
# hadolint ignore=DL3008
|
||||||
RUN apt-get -q update \
|
RUN apt-get -q update \
|
||||||
&& apt-get -q install -y --no-install-recommends \
|
&& apt-get -q install -y --no-install-recommends \
|
||||||
|
ant \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
|
bats \
|
||||||
build-essential \
|
build-essential \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
clang \
|
clang \
|
||||||
|
cmake \
|
||||||
curl \
|
curl \
|
||||||
doxygen \
|
doxygen \
|
||||||
|
findbugs \
|
||||||
fuse \
|
fuse \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
git \
|
git \
|
||||||
gnupg-agent \
|
gnupg-agent \
|
||||||
|
libbcprov-java \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libfuse-dev \
|
libfuse-dev \
|
||||||
@ -65,6 +67,9 @@ RUN apt-get -q update \
|
|||||||
libzstd1-dev \
|
libzstd1-dev \
|
||||||
locales \
|
locales \
|
||||||
make \
|
make \
|
||||||
|
maven \
|
||||||
|
openjdk-11-jdk \
|
||||||
|
openjdk-8-jdk \
|
||||||
pinentry-curses \
|
pinentry-curses \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python \
|
python \
|
||||||
@ -74,47 +79,24 @@ RUN apt-get -q update \
|
|||||||
python-setuptools \
|
python-setuptools \
|
||||||
python-wheel \
|
python-wheel \
|
||||||
rsync \
|
rsync \
|
||||||
|
shellcheck \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
snappy \
|
|
||||||
sudo \
|
sudo \
|
||||||
valgrind \
|
valgrind \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
######
|
||||||
#######
|
# Set env vars required to build Hadoop
|
||||||
# OpenJDK 8
|
######
|
||||||
#######
|
ENV MAVEN_HOME /usr
|
||||||
# hadolint ignore=DL3008
|
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
|
||||||
RUN apt-get -q update \
|
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64
|
||||||
&& apt-get -q install -y --no-install-recommends openjdk-8-jdk libbcprov-java \
|
ENV FINDBUGS_HOME /usr
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
|
|
||||||
######
|
######
|
||||||
# Install cmake 3.1.0 (3.5.1 ships with Xenial)
|
# Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic)
|
||||||
# There is no cmake binary available for aarch64. Build from source.
|
|
||||||
######
|
|
||||||
# hadolint ignore=DL3003
|
|
||||||
RUN mkdir -p /opt/cmake/src \
|
|
||||||
&& curl -L -s -S \
|
|
||||||
https://cmake.org/files/v3.1/cmake-3.1.0-1-src.tar.bz2 \
|
|
||||||
-o /opt/cmake/cmake-src.tar.bz2 \
|
|
||||||
&& tar xvjf /opt/cmake/cmake-src.tar.bz2 -C /opt/cmake/src \
|
|
||||||
&& cd /opt/cmake/src \
|
|
||||||
&& tar xvjf cmake-3.1.0.tar.bz2 \
|
|
||||||
&& cd cmake-3.1.0 && patch -p0 -i ../cmake-3.1.0-1.patch && mkdir .build && cd .build \
|
|
||||||
&& ../bootstrap --parallel=2 \
|
|
||||||
&& make -j2 && ./bin/cpack \
|
|
||||||
&& tar xzf cmake-3.1.0-Linux-aarch64.tar.gz --strip-components 1 -C /opt/cmake \
|
|
||||||
&& cd /opt/cmake && rm -rf /opt/cmake/src
|
|
||||||
ENV CMAKE_HOME /opt/cmake
|
|
||||||
ENV PATH "${PATH}:/opt/cmake/bin"
|
|
||||||
|
|
||||||
######
|
|
||||||
# Install Google Protobuf 3.7.1 (2.6.0 ships with Xenial)
|
|
||||||
######
|
######
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN mkdir -p /opt/protobuf-src \
|
RUN mkdir -p /opt/protobuf-src \
|
||||||
@ -130,46 +112,6 @@ RUN mkdir -p /opt/protobuf-src \
|
|||||||
ENV PROTOBUF_HOME /opt/protobuf
|
ENV PROTOBUF_HOME /opt/protobuf
|
||||||
ENV PATH "${PATH}:/opt/protobuf/bin"
|
ENV PATH "${PATH}:/opt/protobuf/bin"
|
||||||
|
|
||||||
######
|
|
||||||
# Install Apache Maven 3.3.9 (3.3.9 ships with Xenial)
|
|
||||||
######
|
|
||||||
# hadolint ignore=DL3008
|
|
||||||
RUN apt-get -q update \
|
|
||||||
&& apt-get -q install -y --no-install-recommends maven \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
ENV MAVEN_HOME /usr
|
|
||||||
|
|
||||||
######
|
|
||||||
# Install findbugs 3.0.1 (3.0.1 ships with Xenial)
|
|
||||||
# Ant is needed for findbugs
|
|
||||||
######
|
|
||||||
# hadolint ignore=DL3008
|
|
||||||
RUN apt-get -q update \
|
|
||||||
&& apt-get -q install -y --no-install-recommends findbugs ant \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
ENV FINDBUGS_HOME /usr
|
|
||||||
|
|
||||||
####
|
|
||||||
# Install shellcheck (0.4.6, the latest as of 2017-09-26)
|
|
||||||
####
|
|
||||||
# hadolint ignore=DL3008
|
|
||||||
RUN add-apt-repository -y ppa:hvr/ghc \
|
|
||||||
&& apt-get -q update \
|
|
||||||
&& apt-get -q install -y --no-install-recommends shellcheck \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
####
|
|
||||||
# Install bats (0.4.0, the latest as of 2017-09-26, ships with Xenial)
|
|
||||||
####
|
|
||||||
# hadolint ignore=DL3008
|
|
||||||
RUN apt-get -q update \
|
|
||||||
&& apt-get -q install -y --no-install-recommends bats \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
####
|
####
|
||||||
# Install pylint at fixed version (2.0.0 removed python2 support)
|
# Install pylint at fixed version (2.0.0 removed python2 support)
|
||||||
# https://github.com/PyCQA/pylint/issues/2294
|
# https://github.com/PyCQA/pylint/issues/2294
|
||||||
|
Loading…
Reference in New Issue
Block a user