[ https://issues.apache.org/jira/browse/HADOOP-18973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17785999#comment-17785999 ]
ASF GitHub Bot commented on HADOOP-18973: ----------------------------------------- adoroszlai opened a new pull request, #6273: URL: https://github.com/apache/hadoop/pull/6273 ## What changes were proposed in this pull request? * Clean yum cache after installing `which` to reduce image size by ~230MB. * Reorder installation of Hadoop and `which`. Hadoop release bits are not going to change, but we may want to install other packages in the image. The updated order reduces the number of image layers that have to be downloaded after such future change. https://issues.apache.org/jira/browse/HADOOP-18973 ## How was this patch tested? ``` $ docker pull apache/hadoop:2 $ docker run -it --rm apache/hadoop:2 du -sh /var/cache/yum 234M /var/cache/yum $ ./build.sh ... Successfully built c88de0d4d5c2 Successfully tagged apache/hadoop:2 $ docker run -it --rm apache/hadoop:2 du -sh /var/cache/yum 64K /var/cache/yum $ docker image ls | head -3 REPOSITORY TAG IMAGE ID CREATED SIZE apache/hadoop 2 c88de0d4d5c2 9 minutes ago 1.18GB apache/hadoop <none> ba716169c882 49 minutes ago 1.43GB ``` > Clean yum cache after installing which in hadoop2 docker image > -------------------------------------------------------------- > > Key: HADOOP-18973 > URL: https://issues.apache.org/jira/browse/HADOOP-18973 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Attila Doroszlai > Assignee: Attila Doroszlai > Priority: Minor > > Minor addendum to HADOOP-18970: clean yum cache after installing {{which}} to > reduce image size by ~230MB. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org