From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E968A0542 for ; Mon, 24 Oct 2022 19:43:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 735BE41143; Mon, 24 Oct 2022 19:43:58 +0200 (CEST) Received: from mail-pl1-f227.google.com (mail-pl1-f227.google.com [209.85.214.227]) by mails.dpdk.org (Postfix) with ESMTP id 6BB9E40A8B for ; Mon, 24 Oct 2022 19:43:57 +0200 (CEST) Received: by mail-pl1-f227.google.com with SMTP id 4so3169878pli.0 for ; Mon, 24 Oct 2022 10:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yz1OP0DF6gVXehmnXG9ifRs8r/kAA5OaDIsVskfnDeE=; b=CAXl+t0FZGbHmOe6E1/F40kJt9cz6IyGwJ45Zj4pa7azk9xF4ECRoFBZl1bqZewt9T fKKBqZXHtaOfzUeI2vyljIxmLjU1i7VblW65IH3Z3d53yQKx6P0cKfYTKmHn8ZeYE+us rwQnW2dPDkG1JJoq4jd1hAyxfTys8kzKcs/vo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yz1OP0DF6gVXehmnXG9ifRs8r/kAA5OaDIsVskfnDeE=; b=qekHX5b6Pkp0goHSflPIprbhzcV9/+bRmvKMZIktYyUGXs/J+8hyjr/2NZy/xxX1NW v0N29psjcmpV4D6Ppfuek6prrXUt0whf14daS1WDwxWQ/BVyvufnvW9xrEYUZiQCDpJy tpnjkbKAnS43eu8g5lXrmEd3s7Rc999DeheZSZhkhyePL+DfZj6Sb0fgWU8R0P/aLcW0 dFiAK1xvIwnPeupgDQ3kqrdJUl0wDdkuUE2r0KxW+1XXTVNCIt9DQnSKsbMMJ2CMBqlN lfYS9GUPbNN7228ZQ/k/AItHsXrviSEYf4KIuyH5xdvbsMGKv7Exg0lca/uTtOayowls NyCQ== X-Gm-Message-State: ACrzQf0DCyaF9WqEHt87uWbS/gDMtehnG9jx+nu80AYVfq80VsUA+tlv myg/KYTc/FYvWXYcI9wTVsL181QkAxflZnvRmLuVzsx2Z05LpmEnCirt2amVgyY5u13SCZQy2s/ z4aebhmzUe9EpICaT5+L9hTrvPf8Xlfvh6fTz/hmL5UFmJgVXRk/WbDF4g+2w2pAVMSjj3qbF X-Google-Smtp-Source: AMsMyM6SXYIhgIhuV2scj1xamk4fDQfdxmcVLbOCAjeRlqKWxC4y6GndFb02aSjfMM64OnL4ZQGb6JC+fYo5 X-Received: by 2002:a17:902:ea10:b0:185:41c2:a71e with SMTP id s16-20020a170902ea1000b0018541c2a71emr34383862plg.21.1666633436586; Mon, 24 Oct 2022 10:43:56 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id y14-20020a17090322ce00b00172b0a5fdfbsm6141plg.40.2022.10.24.10.43.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2022 10:43:56 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1220:579a:6d00:3172:e0f9]) by postal.iol.unh.edu (Postfix) with ESMTP id E4831605CF42; Mon, 24 Oct 2022 13:43:55 -0400 (EDT) From: ohilyard@iol.unh.edu To: ci@dpdk.org Cc: aconole@redhat.com, alialnu@nvidia.com, Owen Hilyard Subject: [PATCH v3 0/6] Community Lab Container Definitions Date: Mon, 24 Oct 2022 13:43:40 -0400 Message-Id: <20221024174345.15402-1-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org From: Owen Hilyard This patch series contains a new version of the DPDK CI containers. The old version was tied very tightly to the Community Lab Infrastructure, so it was not suitable for general use. This version is designed to make adding new OSes or OS versions as easy as possible. The minimum functionality can easily be built on any system that can compile DPDK. It includes support for building containers for other non-native architectures (ex: arm containers on x86) and for baking ABI references into the images. The inventory file as added in this patch series defines what the community lab currently supports. If you want to build these yourself, don't try to do parallel Makefile builds on non-server hardware. Libabigail is built into the containers, and since it is not avaliable in all distros it is compiled from source for many targets. If embedding the abi is enabled (DPDK_CI_CONTAINERS_BUILD_ABI=Y), with the current settings, DPDK will be compiled twice for every target in the inventory file. This will become three times when DPDK main has ABI stability again. Due to how the containers are constructed, building on non-native architectures is especially expensive because DPDK is compiled with an emulated compiler in a qemu vm that only has one thread. Owen Hilyard (6): containers/docs: Add container builder start containers/inventory: Add inventory for container builder containers/builder: Dockerfile creation script containers/templates: Templates for Dockerfiles containers/container_builder: Container for python scripts containers/Makefile: Makefile to automate builds containers/Makefile | 166 ++++++++ containers/README.md | 138 +++++++ containers/container_builder.dockerfile | 26 ++ containers/template_engine/inventory.yaml | 356 ++++++++++++++++++ .../template_engine/inventory_schema.json | 153 ++++++++ containers/template_engine/make_dockerfile.py | 240 ++++++++++++ containers/template_engine/poetry.lock | 220 +++++++++++ containers/template_engine/pyproject.toml | 21 ++ .../templates/containers.makefile.j2 | 31 ++ .../templates/containers/alpine.dockerfile.j2 | 37 ++ .../templates/containers/arch.dockerfile.j2 | 37 ++ .../templates/containers/base.dockerfile.j2 | 85 +++++ .../containers/centos8.dockerfile.j2 | 21 ++ .../containers/centos9.dockerfile.j2 | 17 + .../templates/containers/debian.dockerfile.j2 | 7 + .../containers/debian10.dockerfile.j2 | 3 + .../containers/debian11.dockerfile.j2 | 3 + .../containers/debian_bullseye.dockerfile.j2 | 3 + .../containers/debian_buster.dockerfile.j2 | 3 + .../templates/containers/fedora.dockerfile.j2 | 11 + .../containers/fedora36_clang.dockerfile.j2 | 7 + .../containers/opensuse.dockerfile.j2 | 10 + .../containers/redhat_family.dockerfile.j2 | 5 + .../templates/containers/rhel.dockerfile.j2 | 12 + .../templates/containers/rhel7.dockerfile.j2 | 19 + .../templates/containers/rhel8.dockerfile.j2 | 19 + .../templates/containers/rhel9.dockerfile.j2 | 25 ++ .../templates/containers/rpm.dockerfile.j2 | 3 + .../templates/containers/ubuntu.dockerfile.j2 | 3 + .../containers/ubuntu20.04.dockerfile.j2 | 12 + .../containers/ubuntu22.04.dockerfile.j2 | 7 + .../containers/ubuntu_cross.dockerfile.j2 | 11 + .../containers/ubuntu_sve.dockerfile.j2 | 10 + 33 files changed, 1721 insertions(+) create mode 100644 containers/Makefile create mode 100644 containers/README.md create mode 100644 containers/container_builder.dockerfile create mode 100644 containers/template_engine/inventory.yaml create mode 100644 containers/template_engine/inventory_schema.json create mode 100755 containers/template_engine/make_dockerfile.py create mode 100644 containers/template_engine/poetry.lock create mode 100644 containers/template_engine/pyproject.toml create mode 100644 containers/template_engine/templates/containers.makefile.j2 create mode 100644 containers/template_engine/templates/containers/alpine.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/arch.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/base.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/centos8.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/centos9.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/debian.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/debian10.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/debian11.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/debian_bullseye.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/debian_buster.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/fedora.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/fedora36_clang.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/opensuse.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/redhat_family.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/rhel.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/rhel7.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/rhel8.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/rhel9.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/rpm.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/ubuntu.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/ubuntu20.04.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/ubuntu22.04.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/ubuntu_cross.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/ubuntu_sve.dockerfile.j2 -- 2.34.1