From patchwork Wed Jul 31 16:58:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 11068827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9A85912 for ; Wed, 31 Jul 2019 17:00:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C561FFBD for ; Wed, 31 Jul 2019 17:00:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B228120243; Wed, 31 Jul 2019 17:00:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CB5B1FFBD for ; Wed, 31 Jul 2019 17:00:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsrw5-0004Bc-1e; Wed, 31 Jul 2019 16:58:45 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsrw3-0004BS-K8 for xen-devel@lists.xenproject.org; Wed, 31 Jul 2019 16:58:43 +0000 X-Inumbo-ID: 72eff19f-b3b4-11e9-8980-bc764e045a96 Received: from mx1.suse.de (unknown [195.135.220.15]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 72eff19f-b3b4-11e9-8980-bc764e045a96; Wed, 31 Jul 2019 16:58:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 41381AE12; Wed, 31 Jul 2019 16:58:41 +0000 (UTC) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Wed, 31 Jul 2019 18:58:40 +0200 Message-ID: <156459232072.7075.5517516860417287661.stgit@Palanthas> In-Reply-To: <156458463216.7075.10552410480716651842.stgit@Palanthas> References: <156458463216.7075.10552410480716651842.stgit@Palanthas> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 1/3] automation: try to keep openSUSE Leap image a little smaller X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Doug Goldstein , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Doug Goldstein --- Cc: Doug Goldstein Cc: Wei Liu --- 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