Skip to content

Commit

Permalink
Make sure tdnf cache is cleaned on closure base image creation
Browse files Browse the repository at this point in the history
 * Optimize the closure base image size by purging tdnf cache

Change-Id: I209b911378d0abeb33ba19f06aa59fd93e4ba307
Reviewed-on: http://bellevue-ci.eng.vmware.com:8080/14319
Compute-Verified: jenkins <[email protected]>
Closures-Verified: jenkins <[email protected]>
Upgrade-Verified: jenkins <[email protected]>
Reviewed-by: Lazarin Lazarov <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
  • Loading branch information
rageorgiev committed Aug 1, 2017
1 parent a26b5a0 commit 5429179
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ RUN tyum install wget curl tar gzip -y &&\
wget http://central.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar &&\
rm -fr jdk-8u121-linux-x64.tar.gz &&\
tyum remove wget tar vim -y &&\
tyum clean all
tyum clean all && \
rm -fr /var/cache/tdnf/*
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ RUN tyum install wget curl npm tar gzip -y &&\
rm -fr ~/.npm &&\
rm -fr node-v4.8.1-linux-x64.tar.gz &&\
tyum remove wget tar vim findutils -y &&\
tyum clean all
tyum clean all && \
rm -fr /var/cache/tdnf/*


Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ MAINTAINER Admiral Team, https://vmware.github.io/admiral/

RUN tyum install gzip python3-devel python3 -y &&\
pip3 install --upgrade pip &&\
pip3 install requests
pip3 install requests &&\
tyum clean all && \
rm -fr /var/cache/tdnf/*

WORKDIR /app

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN tyum install gzip python3-devel openssl-devel libffi dbus-glib python3-3.5.3
pip3 install --upgrade pip &&\
pip3 install requests &&\
tyum remove vim findutils -y &&\
tyum clean all
tyum clean all && \
rm -fr /var/cache/tdnf/*


WORKDIR /app

0 comments on commit 5429179

Please sign in to comment.