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
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to