From nobody Mon Nov 23 04:28:06 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793303625; cv=none; d=zohomail.com; s=zohoarc; b=Ecw62vW9vhutdGtriVPf2rHwJ2bwLTsICj0Ypt34nSTPu5HSBAIBd1k6bUThHI8P/km3K31bzgWmo9VnB+S444Up40K00p19ZF24Q8VphvtP5QUnWt1Ka9Ltwz5cXhlPr+tO+KKRonpQS4/4Qbt/yki+aReWqb6zyAR9TYHijhU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793303625; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cHesrSVnIodHaYAN+waHM/nhMCPCtNl2KsIs9YU/gqc=; b=H/Nbi0dq2jFkYW08QPjkdEkNMIg1lHus+fZMCzGuJsR2MB+IOPOqi243fIgiwJLaSHE2CN2hYzKUQ6HJ/7vyihaYRLxF7fZf5GWI9nO1KhCO93rUkcALDIYdLO0xeaVlh8L0wUhVnGHfAkgqe1SEWagKLDQRF0DrBMqK645gNUQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793303624912491.8930128953865; Thu, 29 Oct 2026 12:53:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMWBD-0003kb-K3; Thu, 29 Oct 2026 15:52:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMWBB-0003jr-NW for qemu-devel@nongnu.org; Thu, 29 Oct 2026 15:52:53 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMWB9-0000xB-8Z for qemu-devel@nongnu.org; Thu, 29 Oct 2026 15:52:53 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TJkDDx3718410 for ; Thu, 29 Oct 2026 19:52:49 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm31b2uy2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 19:52:49 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ae7faf4ff7so760001a91.3 for ; Thu, 29 Oct 2026 12:52:49 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ae6e9b1506sm5275862a91.15.2026.10.29.12.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2026 12:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= cHesrSVnIodHaYAN+waHM/nhMCPCtNl2KsIs9YU/gqc=; b=QNUHVUvgRQGm65Jr ZwIwGNd02JYPnEq1+ZL4ZVZilI2WM3iBaYdcm/7ow9K47v70LXBhgYWi/egW1vhR KkkbW3dULt2kl2S+v9tWagjAJkp9coEyE5oaqYdJv8qDenVoNFK45WvhMQKEX0zG /XHFtJpslKI/xC7/L3qMUl9pu9Lk/GLV3OnctYpXfR9YsnCdMMzrkKAoAVhoTWKb +CvltKOTX3pYLFtOseajaWsuKRfQhyEj7l7ppvCvTuifnnRdJVKTz8f6U9k/CGdA YLbsr6cKUXiSGpUunw0ynecGqwbGWFQRLgFYIznviQIZrCF+lI4yg0Cr8H/oDQuH GqzQVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793303569; x=1793908369; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=cHesrSVnIodHaYAN+waHM/nhMCPCtNl2KsIs9YU/gqc=; b=frYSEAbTS2BdlFTTudkMEJ4HqWXYG/pBIruvXxMjV7Sh9wFl9uMqTBUBZA3V6QQpVF /XKvBiDHoi26B3hFVdaD7FLrbMmB4vmQ24Nm6k9Bj7hByRDJGAr0VH05dBXUb0h0AoQN 3Jf0G46Xg2Czdf6+GGj6pln9oGI8xZlb/+s5RkGflnuZecXr5OxapaU24zCUotw7HTz+ S/18ncu31xiVjjAzbr+wCb2AtNG+jZSTuW4/irmXrWbOQKLuGRqipum9R3YwMNCZACBV 8XRlQJnAoKGaNEofQ2dCV8iZEFe13C4Oql7x2ZtH1QNt6DDvsVHUbbiIzonP080hYz3d PAhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793303569; x=1793908369; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cHesrSVnIodHaYAN+waHM/nhMCPCtNl2KsIs9YU/gqc=; b=MLMPNJtMn0ZeAGvLqirv0pip8X66zbDZq1TBh5d7VmdyUo0TeYTTNRjvcwVouzeUq7 dBubKTDRwFif93Ryh/JPw9Wq75bwCZKJddo66Hwr+LnZtCJseyFmX73UoGVd5etzazML pWRcGoIljvOdOOMkSTNEJgtMCVIiu+cCP/Clq2W/LMHvik+oXckprXyTEKz50tLBmzSB xiGscZsavWVi+fre5Mu14E+etFvrYJEpDKvUTPoEqyFWh8vg9fKYqBmO09G1tsDaGkJJ X6/hxRpkidnZmhni9QJx0srA/+TTEDDocX1yAO+7wv+9Ti8v/t+haN9POrgErzhaRKQi WbnA== X-Gm-Message-State: AFq9FYIfh8tWeJpgReeiUCGM4YWifIcBY6NaOm3gfKwoULNCD39NZH4L yISqEsJFxPVH/T7uHA3z7agzXTAMB89SbAgiTvYepsR+ZtImRSgId5atRtJJrotNJ1voB0YD4Gt rO6h6YSkKLCmLIAeTcOpe/UKWzr1uIhnMwqs2rGzTT4IMNIs8j4OkGLGyEGwSAuw0rQ== X-Gm-Gg: AYBFou16IwBVnovIRS7pDXFGem17No5iEe0LKisWjAdTlK+nthN3Ha9CsriRvcN1EnJ vcNnFDgHf1jw0tDc75LaMNDT7wuchGl4HOurBrOCMNbLeg//fPaEyLBAOl3MjXfd0EhpH30svJN sMB6sTGZVv1c0hJegFklMoSKfvPLUIc0c0veNxSA5JUisc4JsB51BuM+VBAyHHpkt2ndqRocHaQ QgAqt3N1F4s1y68JVB+r6/6pagEFnUcHlOAcgP2HmCF7OzFWF8aY6fYuLBdwvicuLAitPexRUAb QzDZccNv7dni60i7DWbz+hzI1ErL0AbRhf3LNcks+VM8d8/Ud/N9KAlTiGEPFgCGfpuNBodeVLL 7JgWf7BChWOqwsHhdXljRBOVBb5tb87Vati/KkFHRF/F9xhgq8XH+yW9xhXd6/YLqDHDntRmhg8 G1/PXmN6GHQyJ7y4VcTGLbgRsAIihOnzytE+Ka X-Received: by 2002:a17:90b:4ec5:b0:3ac:a203:e0a5 with SMTP id 98e67ed59e1d1-3ae897eb741mr13476a91.11.1793303568557; Thu, 29 Oct 2026 12:52:48 -0700 (PDT) X-Received: by 2002:a17:90b:4ec5:b0:3ac:a203:e0a5 with SMTP id 98e67ed59e1d1-3ae897eb741mr13451a91.11.1793303568102; Thu, 29 Oct 2026 12:52:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 1/2] tests/docker/dockerfiles: add release.docker Date: Thu, 29 Oct 2026 19:52:20 +0000 Message-ID: <20261029195221.6125-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261029195221.6125-1-pierrick.bouvier@oss.qualcomm.com> References: <20261029195221.6125-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA3OCBTYWx0ZWRfXwSpEZ0CfXyb7 Xpykje9obyocGyEO7sCDYYr+/GoNg2/fwIB4m4lB0rrY5SmNRcA8f/P0jp5REOOHyZy2qv5kmkA FNdOy5kaIti80FbZbCuHO0TKX0bqmjU= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA3OCBTYWx0ZWRfX0p115LZSc1ty cvfYcS0XzF22bfJBeweLLp6udZ0I7U7WHoGxdOXbk2NKTo7nJ6gTPGvPAAWND3PtFdfk7/RFQbj zCUWxnAUe0iaboyrm3OjA6lL+aDtocbz+QOLA/dgT9flE4nzLWvSqxpgzjw/ae87Web13k/qVfr tK/B4LO3H8EZjLj9Z1WHoQnS+X4b5GKmpvz08w6y+2yixMS3IVBjSUHnqUI+10AaD/sVJ9odxJU gQcE64O/bN3OOHlOvmnRySlB8bjCft6L6F9usJEV6GvClwvlEIEOo49T9LvWuQJRbdtjk+9fGj9 DAx8SD8zcJ3K6qSIy3/NTJWCNwh24Jr0R/GeHIDj8tyrTegmq+dreXVx/ab2D6eoYeYrWbEBl/N muzDmL7NeQkHTfNux/vWNCfypeyjmUHiqkQ27sQobKNExHkHhWeDhUjZmI0g8BxB6Ldc+mHLlZx E2zbQHrNH+XAgqYwM+g== X-Authority-Analysis: v=2.4 cv=A8T5rKWG c=1 sm=1 tr=0 ts=6ae3a411 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=p0WdMEafAAAA:8 a=DfNHnWVPAAAA:8 a=IH4dkz8bHYACMdZ4P1YA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=rjTVMONInIDnV1a_A2c_:22 X-Proofpoint-GUID: wURm6JjtGmcvwZX1rbquajbpLvwnmvIC X-Proofpoint-ORIG-GUID: wURm6JjtGmcvwZX1rbquajbpLvwnmvIC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290078 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793303626413158500 This new dockerfile allows to build a distroless image containing only qemu stripped release binaries, their lib dependencies, and installed artifacts (roms, keymap, ...). There is no shell, no python, nothing else. This is achieved thanks to a multi-stage build, where we add qemu binaries, artifacts and libraries in a new scratch image. Image has the minimal size possible. This is based on Ubuntu, which has the advantage to have working containers available down to 14.04. Debian old old stable have broken apt sources for instance. This unique dockerfile works for all qemu versions >=3D 3.1.0 (2018). We could build down to v0.12.0, but it would require more tweaks in the dockerfile, so we keep it simple instead. To build the image, you need to provide a qemu and ubuntu version: $ podman build -f release.Dockerfile --build-arg QEMU_VERSION=3Dv11.1.0 --b= uild-arg UBUNTU_VERSION=3D24.04 -t qemu/v11.1.0 To run it, as there is no shell, and no defined entrypoint, you need to choose the binary you want explicitely: $ podman run -it --rm qemu/v11.1.0 qemu-system-aarch64 --version Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/20261029000853.15166-2-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- tests/docker/dockerfiles/release.docker | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tests/docker/dockerfiles/release.docker diff --git a/tests/docker/dockerfiles/release.docker b/tests/docker/dockerf= iles/release.docker new file mode 100644 index 00000000000..ca6babde01e --- /dev/null +++ b/tests/docker/dockerfiles/release.docker @@ -0,0 +1,48 @@ +ARG UBUNTU_VERSION=3D"UBUNTU_VERSION_build_arg_must_be_set" + +FROM ubuntu:$UBUNTU_VERSION AS build + +# add deb-src for apt build-dep +RUN sed -e 's/Types: deb/Types: deb deb-src/' -i /etc/apt/sources.list.d/*= || true +RUN sed -e 's/# deb-src/deb-src/' -i /etc/apt/sources.list +# archive.canonical.com is not reachable anymore, and cause a long timeout +RUN sed -e '/archive.canonical.com/d' -i /etc/apt/sources.list + +# build dependencies +RUN apt update && \ +env DEBIAN_FRONTEND=3Dnoninteractive apt install -y git build-essential fl= ex bison +RUN apt update && \ +env DEBIAN_FRONTEND=3Dnoninteractive apt build-dep -y --arch-only qemu + +ARG QEMU_VERSION +RUN echo "QEMU_VERSION=3D${QEMU_VERSION:?QEMU_VERSION build arg must be se= t}" +ARG QEMU_REPO=3D"https://gitlab.com/qemu-project/qemu.git" + +RUN cd /tmp && \ +mkdir qemu && cd qemu && git init && \ +git remote add origin "${QEMU_REPO}" && \ +git fetch origin "${QEMU_VERSION}" --depth 1 && \ +git checkout FETCH_HEAD && \ +./configure --prefix=3D/opt/qemu --disable-docs --disable-werror && \ +make install -j $(nproc) && \ +strip /opt/qemu/bin/* && \ +rm -rf /tmp/* + +# retrieve runtime dependencies (libs) +RUN ldd /opt/qemu/bin/* | grep '=3D>' | sed -e 's/.*=3D>//' -e 's/(.*//' |= sort -u > /opt/qemu/libs +# store them in /deps/lib +RUN mkdir -p /deps/lib && cp --preserve --dereference $(cat /opt/qemu/libs= ) /deps/lib +# copy loader (with its original path) +RUN cp --preserve --parents --dereference /lib*/ld-linux* /deps/ + +##########################################################################= ###### +FROM scratch + +COPY --from=3Dbuild /deps / +# copy qemu and all associated artifacts (roms, ...) +COPY --from=3Dbuild /opt/qemu /usr + +# build with: +# podman build -f release.docker --build-arg QEMU_VERSION=3Dv11.1.0 --buil= d-arg UBUNTU_VERSION=3D24.04 -t qemu/v11.1.0 +# run with: +# podman run -it --rm qemu/v11.1.0 qemu-system-aarch64 --version --=20 2.43.0 From nobody Mon Nov 23 04:28:06 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793303609; cv=none; d=zohomail.com; s=zohoarc; b=FWR4XdPKnyviWtt7JmmFBHKen2XRZ+hG2BwuFvwKUzDfPNn81bzltBeafa4VajpUjn5XdWs5Z6dFQXSdhuB/Y8iqW/RvzdOCYr2iTkcLMcEx779eG2ocl4fMfzFEkj80U3YQGQiNJL4wZYoXeIs5s0iUlrn+5Wj6Wga1pzEsnJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793303609; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JDZ2MoleeX553s8/IIwaZjXemU8akwhasbvj0bLPzWk=; b=M3KvOvZwgmY2hwdlEPwc7Hzt/0hYvmrczQzzdDMyRQK+fPSAiG5CKo1+KYb5m2zQBRYV+wxQPgLCg+RntW2gwmh1KQsYFxPzIG0CA9BRhk5u0QWJEj2tN07pApBI+t6hea9l/UdHCKOQ8WDtiuSziXmCi8/mjnKjlkKkFOXYKz0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793303609690631.0545871605243; Thu, 29 Oct 2026 12:53:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMWBE-0003kq-En; Thu, 29 Oct 2026 15:52:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMWBC-0003kQ-LS for qemu-devel@nongnu.org; Thu, 29 Oct 2026 15:52:54 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMWBA-0000xN-Pt for qemu-devel@nongnu.org; Thu, 29 Oct 2026 15:52:54 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TJk3Zj532607 for ; Thu, 29 Oct 2026 19:52:51 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hmac0rs2y-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 19:52:50 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ae72da2f57so1500076a91.1 for ; Thu, 29 Oct 2026 12:52:50 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ae6e9b1506sm5275862a91.15.2026.10.29.12.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2026 12:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JDZ2MoleeX553s8/IIwaZjXemU8akwhasbvj0bLPzWk=; b=l3ecjgzJLmdhhPpg +GkRIaGhHlEastrA8su/RM3PaeqA3f18UZ+oIn4LNbYZ/Cd4IwzZoGo7YXCmwYgp y/gMu5wTSSoM6RyUF73URFHPORT2gFY08mMySUVRsQONyjRhJe6ynC0UorPnt/m6 qqHQdOGc7zlOYfb+JpfyrgcVnfg45Z6OhGGBIxB2/+nu68KJT30Bqz+DN0v5Oz4Y o4ePDMolf+wuWY6pH0mRIcBDeHIHLaxCX5rtXzzKrl2A7JQXsweKTL00TC9XWgoU WcRI8u3cxE0MTYcIQYQ/rKd7qYVjbXKtDMckAANWr6JPnGL2jgLlAscCaiAsp113 KKrV5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793303570; x=1793908370; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JDZ2MoleeX553s8/IIwaZjXemU8akwhasbvj0bLPzWk=; b=YjZKa9lAH1VSkN7aSmQwU11R0mwS56l18Z/2tXHt6nt+G/P7DROGIHbrLJp3rDudhH 610uuoaD0Sh4W2Ym/HA0BiQy4iZ968CYhtvdNgXLggkz0dF+sJlt+H76GSJzQmn475IK ZyACTORM2ImUgaSJF/ztyP4d2EpOVisgo4MGDZJhdCmD6diCezGf6oJsqsrC2kcl8gMf qA+BLE//u+Z1G3SZWdOdVPeU0uayNx1xwfG1c9ebI2hnmJkaqU01msJIotJQOsUHPYdn BMWL5UBS1ZU3i5ck745RriLNR5US62v3Dn6Dbw/6PSr7P3hVTKDhxaMQ1Y/PO9VyKDvY XhmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793303570; x=1793908370; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JDZ2MoleeX553s8/IIwaZjXemU8akwhasbvj0bLPzWk=; b=KcRaBe7fSch0/l+2Qy+5gmMUJC8CtKEf3fR4Vm4xl9B3TEIdPtxxsjjj1HPyX15LPQ 8pmEnj7UkefECHxEpzwskQ0CvdykXZTTuVUzMWs9DygqXrFZAiIBllIAvnTIBk6ozME5 jSzb0nY5CsdNtdkAHIZ6r0P0Tw7lZGtzMXEVyHjynQ3rypYSB7d6HdWc1lvfXEUvvWIQ 2xdsYjZMeOawgp7jSBtWinulg0sVVDW54h+1A1rtLmEV9uDR0WDUdKuAYXhCEp2AALbE cli9LDG8F+ne6LPrK5qeKe0n6fT4qJ7O/4e0toEPRG88b0ofYwBEj5MDKRFM9oMBMkmF R0Aw== X-Gm-Message-State: AFq9FYKZJUidsv1wJjueJ6F1nFN7fhH6GqecyuAZiBme6nUqkYuxAcpO +ArdBAlbRtlIQ+yQtX0fZKsmuWg5KNpPnBla9/gj7oHDktx6x3+Pg9JwGnhxcoySTXBZKkh0TUw 8zVPHEpJht8F7zVoV9wK6nWiGvdxJGNBZLTZ+QfC5bSY/mNz+BkPSnkw9D6WCcBIugg== X-Gm-Gg: AYBFou1Y5HmGlOlkOrIZdjHYWIqxRGcDKzXQOzvTC6p21wWvIjzjGQIcs4nZBrs2WG+ /YzhywJtEzCLTzPgWrhpwzYZFuX+dnJnlof+4FZZtLrwvvGqiNOg3/t75qsDZxDd/SBOw7qcW8m D5XijnL0jyfKZvP9ghdV8C8USRVazxf5eImtrIRPTuc+KEJZBYM6GH49PJDMiqCG0clBmYrvGc4 ltju86fynLT8sEXphKa2/qBJhfJpBdXCHT7Rh225R/FyLpNFcMh3IGyyQC1pfPR4Dpr68rhR8QF pIoXit2NQMb9FsFRUNAhqC3YBk28ROL/6p6sdb16gp3MsrfZ/zQDd19mGoxxsIxmNtYBnPX6+Vj cKa9ckP6gn2DOl9arpQevlva64Dzd9aZOIk+t9DWdBII+qG3R3Xz3iCLLCcnTfvUUoVr9uyto1A RpkzvK7RP8U5LKH4VlwrUtCmsnVAlgaALE1u+x X-Received: by 2002:a17:90b:3c90:b0:3a8:bbc2:5551 with SMTP id 98e67ed59e1d1-3ae8918adcbmr63761a91.0.1793303570301; Thu, 29 Oct 2026 12:52:50 -0700 (PDT) X-Received: by 2002:a17:90b:3c90:b0:3a8:bbc2:5551 with SMTP id 98e67ed59e1d1-3ae8918adcbmr63734a91.0.1793303569722; Thu, 29 Oct 2026 12:52:49 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 2/2] scripts: add build_release_container.sh Date: Thu, 29 Oct 2026 19:52:21 +0000 Message-ID: <20261029195221.6125-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261029195221.6125-1-pierrick.bouvier@oss.qualcomm.com> References: <20261029195221.6125-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: O9tBRZV2fhqKoxPBuuxxBD9MWZDSVLCv X-Proofpoint-GUID: O9tBRZV2fhqKoxPBuuxxBD9MWZDSVLCv X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA3OCBTYWx0ZWRfX6k+iovftbz5E XG9VXdJ1EKGmsHll3Qmzr2wuHt0+pgJxgzjsoZtlZnWnRQ3I7cYdw8jKosCR+eQi9b/Y08lfnqF ahOA3/YjZhzyPs4A6nd7fIGQJtVlc8k= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA3OCBTYWx0ZWRfXxZWBg17ce6uP udboAHzLqPIZ1+7vvPTzwWVoSolzM3w50PsSKBPnlHmsItK6guOcTuY2dXnnGuRt2gTAi36+BDb hhrvFSDZmCIzkqTGDIt8rk5T3fwDKbwyL034LVbSaUqrv5VYqvZydUy2i/uuRLxEpy9Rvyaob8H pUS+x0auIVvZ5SVkd0k7vGSfU3OyNjUAxVFZylsEtquEDKYwt75Nce1q4QcnIP9ezyEUS/aGToI N6uXVpWStcl5B/ip0NJ7KDFW60wfJoP1g8fgJoh1PZ3trq2CiM+5oxOYyvynOHLSczeWEKNIt8c zbDnm5f0etOMA519uWgFFyQSpWnq4qRDK9XP2n82KoXOEP0ofPXHmQ+Wg10/EUEsw/eQW+/J59k J57sEM/urSPP0xWmg8xmG8RPQaJImVWSeEytPu3tiFo6Pm6K6RTU1Rlljl/zbfyKr+NLjRitIys N+2b9F13D4bi/Ubf+Sw== X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae3a412 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=p0WdMEafAAAA:8 a=Ab9DfM9NdPcTtTRkZkQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290078 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793303613150154100 This script allows to easily build a qemu release container, based on dockerfile introduced in previous commit. It names image "qemu/$version" and automatically detects which ubuntu version should be used to build it. $ ./scripts/build_release_container.sh v3.1.0 $ podman run -it --rm qemu/v3.1.0 qemu-system-arm --version QEMU emulator version 3.1.0 (-dirty) Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/qemu-devel/20261029000853.15166-3-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- scripts/build_release_container.sh | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 scripts/build_release_container.sh diff --git a/scripts/build_release_container.sh b/scripts/build_release_con= tainer.sh new file mode 100755 index 00000000000..7dd477deea8 --- /dev/null +++ b/scripts/build_release_container.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +script_dir=3D$(dirname $(readlink -f $0)) + +# The oldest buildable release we support is v3.1.0, as previous ones requ= ire +# additional tweaks in Dockerfile. +# For building previous releases (down to v0.12.0), +# see: 20261014005338.34657-1-pierrick.bouvier@oss.qualcomm.com +oldest_release=3Dv3.1.0 + +if [ $# -lt 1 ] || [ $# -gt 2 ]; then + echo "usage: version [git_repo]" + echo + echo "- version: tag or sha-1 (>=3D v3.1.0)" + echo "- git_repo: (optional) QEMU repository URL" + exit 1 +fi +version=3D$1;shift + +git_repo=3D"https://gitlab.com/qemu-project/qemu.git" +if [ $# -eq 1 ]; then + git_repo=3D$1;shift +fi + +year=3D$(date +%Y) +month=3D$(date +%m) +if git rev-parse $version >& /dev/null; then + year=3D$(git log -1 --format=3D'%cd' --date=3D'format:%Y' $version) + month=3D$(git log -1 --format=3D'%cd' --date=3D'format:%m' $version) +fi + +# Ubuntu LTS are published every (even) two years in April. +ubuntu=3D +if [ $((year % 2)) -eq 1 ]; then + # pick latest LTS from previous year + ubuntu=3D$((year - 1)) +elif [ $month -gt 6 ]; then + # LTS published this year should work + ubuntu=3D$year +else + # pick latest LTS from two years ago + ubuntu=3D$((year - 2)) +fi +if [ $ubuntu -lt 2014 ]; then + # oldest ubuntu release available with containers is 14.04 + ubuntu=3D2014 +fi +ubuntu=3D$((ubuntu - 2000)) +ubuntu_version=3D$ubuntu.04 + +dockerfile=3D$script_dir/../tests/docker/dockerfiles/release.docker +docker=3D$($script_dir/../tests/docker/docker.py probe) + +set -x +$docker build . \ + -f $dockerfile \ + --build-arg QEMU_VERSION=3D$version \ + --build-arg UBUNTU_VERSION=3D$ubuntu_version \ + --build-arg QEMU_REPO=3D"$git_repo" \ + -t qemu/$version --=20 2.43.0