[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] automation: try to keep openSUSE Leap image a little smaller



commit d446dbb234c58119749507d53d2e8ebad4430d9d
Author:     Dario Faggioli <dfaggioli@xxxxxxxx>
AuthorDate: Wed Jul 31 18:58:40 2019 +0200
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Sat Aug 3 15:55:39 2019 +0100

    automation: try to keep openSUSE Leap image a little smaller
    
    Using `--no-recommends` when updating or installing commands should
    prevent non strictly necessary packages to be installed.
    
    doing a `clean -a` after installing all the packages, should, in
    theory, free more space (as opposed to using just `clean`).
    
    Signed-off-by: Dario Faggioli <dfaggioli@xxxxxxxx>
    Acked-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
 automation/build/suse/opensuse-leap.dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/automation/build/suse/opensuse-leap.dockerfile 
b/automation/build/suse/opensuse-leap.dockerfile
index a627c9a1f1..b68d5b0efb 100644
--- a/automation/build/suse/opensuse-leap.dockerfile
+++ b/automation/build/suse/opensuse-leap.dockerfile
@@ -7,8 +7,8 @@ ENV USER root
 RUN mkdir /build
 WORKDIR /build
 
-RUN zypper ref && zypper up -y
-RUN zypper install -y \
+RUN zypper ref && zypper up -y --no-recommends
+RUN zypper install -y --no-recommends \
         acpica \
         bc \
         bin86 \
@@ -65,4 +65,4 @@ RUN zypper install -y \
         xz-devel \
         zlib-devel \
         && \
-        zypper clean
+        zypper clean -a
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.