[Xen-devel] [PATCH 1/3] automation: try to keep openSUSE Leap image a little smaller

Dario Faggioli posted 3 patches 6 years, 3 months ago
[Xen-devel] [PATCH 1/3] automation: try to keep openSUSE Leap image a little smaller
Posted by Dario Faggioli 6 years, 3 months ago
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@suse.com>
---
Cc: Doug Goldstein <cardoe@cardoe.com>
Cc: Wei Liu <wl@xen.org>
---
 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 614a5c8405..eb70419002 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 \
@@ -64,4 +64,4 @@ RUN zypper install -y \
         xz-devel \
         zlib-devel \
         && \
-        zypper clean
+        zypper clean -a


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH 1/3] automation: try to keep openSUSE Leap image a little smaller
Posted by Doug Goldstein 6 years, 3 months ago
On 7/31/19 11:58 AM, Dario Faggioli wrote:

> 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@suse.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel