From nobody Sun Nov 24 05:40:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=cloud.com ARC-Seal: i=1; a=rsa-sha256; t=1730898970; cv=none; d=zohomail.com; s=zohoarc; b=jte72xCRXl770gkN9dAIrIMYk/v5QlH1DP9qkAZFlk0LXX7iPuUT7KD1TCQFBRGOMbCEblDtVjIy3YiqyIjSUcVMW9KVDA09BRTTFwY3NSeGKAcTr7TcQmXo8HBkn9oPEkXPzMtLr9IZuAvsgW+ZXdGfD0PR10sBkbYv76l6oQ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1730898970; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IYRtBXHtmMvAiHP0ZMkvKUBKJ4wJh4GIX8aEfCSEVfs=; b=lZ6aVfEK9XquXtBG+nv+/+pj5LIkXqgOk8rw6I27GJCDiUzIyEOGMXEkB7qNWnoEJdH6imF7DRxUltwPY8NG4cMpN1w09Qe5yDGz38kCuLU8VXKgwAtAxvQCgOeIMbVvpoF0yPtU74Tp57Q/XlM4+CZ0OTTsYZnhZTKKlo8AsmE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17308989704065.079912759155718; Wed, 6 Nov 2024 05:16:10 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.830945.1246072 (Exim 4.92) (envelope-from ) id 1t8ft2-0000nH-GS; Wed, 06 Nov 2024 13:15:52 +0000 Received: by outflank-mailman (output) from mailman id 830945.1246072; Wed, 06 Nov 2024 13:15:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t8ft2-0000l5-BT; Wed, 06 Nov 2024 13:15:52 +0000 Received: by outflank-mailman (input) for mailman id 830945; Wed, 06 Nov 2024 13:15:51 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t8ft1-0000Zv-L5 for xen-devel@lists.xenproject.org; Wed, 06 Nov 2024 13:15:51 +0000 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [2a00:1450:4864:20::535]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id ca6ef5a1-9c3f-11ef-a0c6-8be0dac302b0; Wed, 06 Nov 2024 14:13:24 +0100 (CET) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5c941623a5aso1557787a12.0 for ; Wed, 06 Nov 2024 05:07:48 -0800 (PST) Received: from localhost.localdomain ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cee6a9a3e3sm2708939a12.12.2024.11.06.05.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 05:05:25 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ca6ef5a1-9c3f-11ef-a0c6-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDA6MTQ1MDo0ODY0OjIwOjo1MzUiLCJoZWxvIjoibWFpbC1lZDEteDUzNS5nb29nbGUuY29tIn0= X-Custom-Transaction: eyJpZCI6ImNhNmVmNWExLTljM2YtMTFlZi1hMGM2LThiZTBkYWMzMDJiMCIsInRzIjoxNzMwODk4OTA4LjExNjE2Nywic2VuZGVyIjoiamF2aS5tZXJpbm9AY2xvdWQuY29tIiwicmVjaXBpZW50IjoieGVuLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnIn0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1730898325; x=1731503125; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IYRtBXHtmMvAiHP0ZMkvKUBKJ4wJh4GIX8aEfCSEVfs=; b=iIb5vJMsQu7OXrYkPhL6fGYhQx5GRBIzsK26f9HeB5F0n7myYvdeZR4cWGAi0x3vLG cGeUEVcOT/CkSG2dsLVnhLeNPszQp91MX8uIKKQlX5VU4owg7rDXUMvBpIe7a1YaOp9i FryP5E6liflgBbAV5bqj9OR1y68OqFKN3+0lY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730898325; x=1731503125; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IYRtBXHtmMvAiHP0ZMkvKUBKJ4wJh4GIX8aEfCSEVfs=; b=cr1nVcTD7NlePOnx5+vtH0GAgCM6vO756kDoSGLL1R9WJ2jvkg1Zqe2Alw2gn9tpZP tRGCvhy5B+C1IKk1m5k/3FsRlYwoWDV1ewUpsOKzO6PhEweq1Nc3XTKWgPgDk9OyEEUD Kskov8AD2U8Fa/xDrcL295wzQfPqW9/twbaUZlN6DMFecKnNzuTb5JmMmO1bhyvfPjwv HMecqmsLtlv6IsaOwOZU1e+3QdoH2WHs+veLmwcOYkvwPaS3OnZVld5G1z4HMHaf5xpk hPpTpFG2XRnKZ3KlCXlcTfqINSLcOQD2RZw46eIFilLprHfSptCsnE/pGqqWf6rzA2jH qNNg== X-Gm-Message-State: AOJu0YxFR4rdFMp/Q/ssVGXYGyJ3Q1JzIsfcFXnAXCy0lOmYDJ+HhCk7 mjMjnSGt7HqqS63nTSq4Rd1ntSQB2BJcbDC6KEvkwtqbmc2EXDTdfd+VOaPuxdxKVpkKTQt9G87 lI/k= X-Google-Smtp-Source: AGHT+IHC79vPV0iv5YoF1GyY6qEaluGz1BR00EHejTbobHaPynygyuJW4BnXPK14tPmiRf2U37Lm5A== X-Received: by 2002:a05:6402:2684:b0:5c9:85e8:ec8c with SMTP id 4fb4d7f45d1cf-5cef550779cmr3077911a12.6.1730898325515; Wed, 06 Nov 2024 05:05:25 -0800 (PST) From: Javi Merino To: xen-devel@lists.xenproject.org Cc: Javi Merino , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH v2 5/6] CI: Refresh the Debian 12 cppcheck container Date: Wed, 6 Nov 2024 13:05:06 +0000 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @cloud.com) X-ZM-MESSAGEID: 1730898971945116600 Content-Type: text/plain; charset="utf-8" Rework the container to build and run cppcheck as a normal user. User heredocs for readability and use apt-get --no-install-recommends to keep the size down. Changed the libpcre3-dev dependency to libpcre3, as the -dev package is only needed for building, not for running. With the cleanups, the size of the container is reduced from 882MB to 782MB. Signed-off-by: Javi Merino --- .../debian/12-arm64v8-cppcheck.dockerfile | 79 +++++++++++++++++++ .../build/debian/bookworm-cppcheck.dockerfile | 54 ------------- automation/gitlab-ci/build.yaml | 12 +-- automation/scripts/containerize | 2 +- 4 files changed, 86 insertions(+), 61 deletions(-) create mode 100644 automation/build/debian/12-arm64v8-cppcheck.dockerfile delete mode 100644 automation/build/debian/bookworm-cppcheck.dockerfile diff --git a/automation/build/debian/12-arm64v8-cppcheck.dockerfile b/autom= ation/build/debian/12-arm64v8-cppcheck.dockerfile new file mode 100644 index 000000000000..21c006e74f2e --- /dev/null +++ b/automation/build/debian/12-arm64v8-cppcheck.dockerfile @@ -0,0 +1,79 @@ +# syntax=3Ddocker/dockerfile:1 +FROM --platform=3Dlinux/arm64/v8 debian:bookworm AS builder + +ENV DEBIAN_FRONTEND=3Dnoninteractive +ENV CPPCHECK_VERSION=3D2.7 + +# dependencies for cppcheck build +RUN <