1717# Dockerfile for installing the necessary dependencies for building Hadoop.
1818# See BUILDING.txt.
1919
20- FROM debian:10
20+ FROM debian:11
2121
2222WORKDIR /root
2323
@@ -29,65 +29,63 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2929RUN echo APT::Install-Recommends "0"\; > /etc/apt/apt.conf.d/10disableextras
3030RUN echo APT::Install-Suggests "0"\; >> /etc/apt/apt.conf.d/10disableextras
3131
32- ENV DEBIAN_FRONTEND noninteractive
33- ENV DEBCONF_TERSE true
32+ ENV DEBIAN_FRONTEND= noninteractive
33+ ENV DEBCONF_TERSE= true
3434
3535######
3636# Platform package dependency resolver
3737######
3838COPY pkg-resolver pkg-resolver
3939RUN chmod a+x pkg-resolver/install-pkg-resolver.sh
40- RUN pkg-resolver/install-pkg-resolver.sh debian:10
40+ RUN pkg-resolver/install-pkg-resolver.sh debian:11
4141
4242######
4343# Install packages from apt
4444######
4545# hadolint ignore=DL3008,SC2046
4646RUN apt-get -q update \
47- && apt-get -q install -y --no-install-recommends $(pkg-resolver/resolve.py debian:10) \
48- && echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list \
49- && apt-get -q update \
50- && apt-get -q install -y --no-install-recommends -t bullseye $(pkg-resolver/resolve.py --release=bullseye debian:10) \
47+ && apt-get -q install -y --no-install-recommends $(pkg-resolver/resolve.py debian:11) \
5148 && apt-get clean \
49+ && update-java-alternatives -s java-1.11.0-openjdk-amd64 \
5250 && rm -rf /var/lib/apt/lists/*
5351
5452# TODO : Set locale
5553
5654######
5755# Set env vars required to build Hadoop
5856######
59- ENV MAVEN_HOME /usr
57+ ENV MAVEN_HOME= /usr
6058# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
61- ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
59+ ENV JAVA_HOME= /usr/lib/jvm/java-11-openjdk-amd64
6260
6361#######
6462# Set env vars for SpotBugs 4.2.2
6563#######
66- ENV SPOTBUGS_HOME /opt/spotbugs
64+ ENV SPOTBUGS_HOME= /opt/spotbugs
6765
6866#######
6967# Set env vars for Google Protobuf 3.21.12
7068#######
71- ENV PROTOBUF_HOME /opt/protobuf
72- ENV PATH "${PATH}:/opt/protobuf/bin"
69+ ENV PROTOBUF_HOME= /opt/protobuf
70+ ENV PATH= "${PATH}:/opt/protobuf/bin"
7371
7472###
7573# Avoid out of memory errors in builds
7674###
77- ENV MAVEN_OPTS -Xms256m -Xmx3072m
75+ ENV MAVEN_OPTS=" -Xms256m -Xmx3072m"
7876
7977# Skip gpg verification when downloading Yetus via yetus-wrapper
80- ENV HADOOP_SKIP_YETUS_VERIFICATION true
78+ ENV HADOOP_SKIP_YETUS_VERIFICATION= true
8179
8280####
8381# Install packages
8482####
85- RUN pkg-resolver/install-cmake.sh debian:10
86- RUN pkg-resolver/install-spotbugs.sh debian:10
87- RUN pkg-resolver/install-boost.sh debian:10
88- RUN pkg-resolver/install-protobuf.sh debian:10
89- RUN pkg-resolver/install-hadolint.sh debian:10
90- RUN pkg-resolver/install-intel-isa-l.sh debian:10
83+ RUN pkg-resolver/install-cmake.sh debian:11
84+ RUN pkg-resolver/install-spotbugs.sh debian:11
85+ RUN pkg-resolver/install-boost.sh debian:11
86+ RUN pkg-resolver/install-protobuf.sh debian:11
87+ RUN pkg-resolver/install-hadolint.sh debian:11
88+ RUN pkg-resolver/install-intel-isa-l.sh debian:11
9189
9290###
9391# Everything past this point is either not needed for testing or breaks Yetus.
0 commit comments