[ 
https://issues.apache.org/jira/browse/HADOOP-19709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028252#comment-18028252
 ] 

ASF GitHub Bot commented on HADOOP-19709:
-----------------------------------------

pan3793 commented on code in PR #8001:
URL: https://github.com/apache/hadoop/pull/8001#discussion_r2412425091


##########
dev-support/docker/Dockerfile_debian_13:
##########
@@ -0,0 +1,110 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Dockerfile for installing the necessary dependencies for building Hadoop.
+# See BUILDING.txt.
+
+FROM debian:13
+
+WORKDIR /root
+
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+
+#####
+# Disable suggests/recommends
+#####
+RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/10disableextras
+RUN echo 'APT::Install-Suggests "0";' >>  /etc/apt/apt.conf.d/10disableextras
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV DEBCONF_TERSE=true
+
+######
+# Platform package dependency resolver
+######
+COPY pkg-resolver pkg-resolver
+RUN chmod a+x pkg-resolver/*.sh pkg-resolver/*.py \
+    && chmod a+r pkg-resolver/*.json
+
+######
+# Install packages from apt
+######
+# hadolint ignore=DL3008,SC2046
+RUN apt-get -q update
+RUN apt-get -q install -y --no-install-recommends wget apt-transport-https gpg 
gpg-agent gawk ca-certificates
+RUN apt-get -q install -y --no-install-recommends python3
+RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= 
'/^VERSION_CODENAME/{print$2}' /etc/os-release) main" > 
/etc/apt/sources.list.d/adoptium.list
+RUN wget -q -O - https://packages.adoptium.net/artifactory/api/gpg/key/public 
> /etc/apt/trusted.gpg.d/adoptium.asc
+RUN apt-get -q update
+RUN apt-get -q install -y --no-install-recommends $(pkg-resolver/resolve.py 
debian:13)
+RUN apt-get clean
+RUN update-java-alternatives -s temurin-17-jdk-amd64
+RUN rm -rf /var/lib/apt/lists/*

Review Comment:
   each RUN produces one image layer, you should concat those shell commands by 
&& instead





> [JDK17] Add debian:12 and debian:13 as a build platform with JDK-17 as default
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-19709
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19709
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Vinayakumar B
>            Assignee: Vinayakumar B
>            Priority: Major
>              Labels: pull-request-available
>
> Add a new Dockerfiles to compile Hadoop on latest Debian:12 and Debian:13 
> with JDK17 as the default compiler.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to