|
@@ -17,7 +17,7 @@
|
|
|
# Dockerfile for installing the necessary dependencies for building Hadoop.
|
|
|
# See BUILDING.txt.
|
|
|
|
|
|
-FROM ubuntu:bionic
|
|
|
+FROM ubuntu:focal
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
@@ -53,6 +53,7 @@ RUN apt-get -q update \
|
|
|
gcc \
|
|
|
git \
|
|
|
gnupg-agent \
|
|
|
+ hugo \
|
|
|
libbcprov-java \
|
|
|
libbz2-dev \
|
|
|
libcurl4-openssl-dev \
|
|
@@ -63,10 +64,13 @@ RUN apt-get -q update \
|
|
|
libsnappy-dev \
|
|
|
libssl-dev \
|
|
|
libtool \
|
|
|
- libzstd1-dev \
|
|
|
+ libzstd-dev \
|
|
|
locales \
|
|
|
make \
|
|
|
maven \
|
|
|
+ nodejs \
|
|
|
+ node-yarn \
|
|
|
+ npm \
|
|
|
openjdk-11-jdk \
|
|
|
openjdk-8-jdk \
|
|
|
phantomjs \
|
|
@@ -74,7 +78,6 @@ RUN apt-get -q update \
|
|
|
pkg-config \
|
|
|
python2.7 \
|
|
|
python3 \
|
|
|
- python3-dev \
|
|
|
python3-pip \
|
|
|
python3-pkg-resources \
|
|
|
python3-setuptools \
|
|
@@ -110,7 +113,7 @@ RUN mkdir -p /opt/spotbugs \
|
|
|
ENV SPOTBUGS_HOME /opt/spotbugs
|
|
|
|
|
|
######
|
|
|
-# Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic)
|
|
|
+# Install Google Protobuf 3.7.1 (3.6.1 ships with Focal)
|
|
|
######
|
|
|
# hadolint ignore=DL3003
|
|
|
RUN mkdir -p /opt/protobuf-src \
|
|
@@ -132,6 +135,12 @@ ENV PATH "${PATH}:/opt/protobuf/bin"
|
|
|
####
|
|
|
RUN pip3 install pylint==2.6.0 python-dateutil==2.8.1
|
|
|
|
|
|
+####
|
|
|
+# Install bower
|
|
|
+####
|
|
|
+# hadolint ignore=DL3008
|
|
|
+RUN npm install -g bower@1.8.8
|
|
|
+
|
|
|
###
|
|
|
# Avoid out of memory errors in builds
|
|
|
###
|
|
@@ -149,12 +158,6 @@ ENV QT_QPA_PLATFORM offscreen
|
|
|
# YETUS CUT HERE
|
|
|
###
|
|
|
|
|
|
-# Hugo static website generator (for new hadoop site docs)
|
|
|
-RUN curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_0.58.3_Linux-ARM64.deb \
|
|
|
- && dpkg --install hugo.deb \
|
|
|
- && rm hugo.deb
|
|
|
-
|
|
|
-
|
|
|
# Add a welcome message and environment checks.
|
|
|
COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh
|
|
|
RUN chmod 755 /root/hadoop_env_checks.sh
|