This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch docker-hadoop-2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/docker-hadoop-2 by this push:
     new a472db73a564 HADOOP-18973. Clean yum cache after installing which in 
hadoop2 docker image (#6273)
a472db73a564 is described below

commit a472db73a56474c5916ec87eeab371ad645dc3bd
Author: Doroszlai, Attila <6454655+adorosz...@users.noreply.github.com>
AuthorDate: Wed Nov 15 09:28:32 2023 +0100

    HADOOP-18973. Clean yum cache after installing which in hadoop2 docker 
image (#6273)
---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 5ac2482b890d..05b57fc50c27 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,10 +14,11 @@
 # limitations under the License.
 
 FROM apache/hadoop-runner
-RUN sudo yum install -y which
 ARG 
HADOOP_URL=https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=hadoop/common/hadoop-2.10.2/hadoop-2.10.2.tar.gz
 WORKDIR /opt
 RUN sudo rm -rf /opt/hadoop && curl -LSs -o hadoop.tar.gz $HADOOP_URL && tar 
zxf hadoop.tar.gz && rm hadoop.tar.gz && mv hadoop* hadoop && rm -rf 
/opt/hadoop/share/doc
+RUN sudo yum install -y which && \
+      sudo yum clean all
 WORKDIR /opt/hadoop
 ADD log4j.properties /opt/hadoop/etc/hadoop/log4j.properties
 RUN sudo chown -R hadoop:users /opt/hadoop/etc/hadoop/*


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to