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

Re: [PATCH v3 05/10] automation: Add Arm containers to containerize script


  • To: Jiamei Xie <Jiamei.Xie@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 20 Oct 2022 08:59:22 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HoO7VQb2AeH+OR2oYqPOm2g8zTDm2n0Sc40MAmzf2ug=; b=az+J0O3fwkXg3wzwtYCsn5G9h/f95+lBk9VJVDZRmVU3/UtTQABGcvOLhgZz1YnoVV2GMDUUtYDB4CuKNhLhfRmCi24fvsuJjVn3/L/3idS9hE08Eaj100nk8mFSBcM9FRw2Ee+TH8pCdRycS5ZsKMEfhwXnVwMA+K1RhqZR4toqZAay+TmpcrL/a6Ib6dBQUJRkeGh2kdESS1oEh0XsTF3EQfgYhICmgl9Kuch9jYA7sJtRGmJrN88FxxO3EeYWOd5MqhxaO5fVFIUvMXpkDwcyvHo3v/i2QACsjUOYIxprcw9Efb67zlAodIUNtmy+eqj2rFLSH0g6iz2yosRg/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RCyRsxSJ3rCWiTCUw0OEPFsUv7crPY10JKAbveOxg8qMGR/OwdXM4qbplGguGI774CQxZTy9bXgE9OZzUUHr2Y64yP1pseTpRyNl2bC40JgpZaSmqUILdl7qXGAD2tCDvfYBBQIs5zUr6SttF8qHOJxNMKsI0oN0ciPfq8L3i78q/hOEEUN4NH7Ip3b8au1pc5VdR0KVaXJp45HUMAmsBIm+Tp4Qkmm5HsYNdQfUxpDtUi1uT+gDdfxtPYcvJ3Ou3xD35/IQrQdjsNfkFOn220IkJp7ERSoQkf4TVwQ5AnElT4FYZnl43VYUCQ2xv1MlIwek7mI3WVUL6+WBstsvIw==
  • Cc: Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 20 Oct 2022 06:59:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Jiamei,

On 20/10/2022 05:00, Jiamei Xie wrote:
> 
> 
> Hi Michal,
> 
>> -----Original Message-----
>> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of
>> Michal Orzel
>> Sent: Tuesday, September 27, 2022 5:47 PM
>> To: xen-devel@xxxxxxxxxxxxxxxxxxxx
>> Cc: Michal Orzel <michal.orzel@xxxxxxx>; Doug Goldstein
>> <cardoe@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>
>> Subject: [PATCH v3 05/10] automation: Add Arm containers to containerize
>> script
>>
>> Script automation/scripts/containerize makes it easy to build Xen within
>> predefined containers from gitlab container registry. This script is
>> currently missing the helpers to select Arm containers, so populate the
>> necessary entries.
>>
>> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
>> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>> ---

> 
> [Jiamei Xie]
> I wonder if an default container for arm can be added. For example,  if
>  "CONTAINER=arm64 automation/scripts/containerize bash",
>  set the default CONTAINER as 
> "registry.gitlab.com/xen-project/xen/alpine:3.12-arm64v8"
> 

It can be added doing the following:

diff --git a/automation/scripts/containerize b/automation/scripts/containerize
index 0f4645c4cccb..b395bd359ecf 100755
--- a/automation/scripts/containerize
+++ b/automation/scripts/containerize
@@ -25,7 +25,7 @@ die() {
 BASE="registry.gitlab.com/xen-project/xen"
 case "_${CONTAINER}" in
     _alpine) CONTAINER="${BASE}/alpine:3.12" ;;
-    _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.12-arm64v8" ;;
+    _alpine-arm64v8|_arm64) CONTAINER="${BASE}/alpine:3.12-arm64v8" ;;
     _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
     _riscv64) CONTAINER="${BASE}/archlinux:riscv64" ;;
     _centos7) CONTAINER="${BASE}/centos:7" ;;

The question is whether it would be beneficial. After all you would still need 
to
type CONTAINER=arm64, whereas at the moment, you need to type 
CONTAINER=alpine-arm64v8.
TBH I'm not sure it is improving anything (?).

~Michal



 


Rackspace

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