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 BEFB4A0584 for ; Wed, 19 Oct 2022 14:53:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5757E42BA0; Wed, 19 Oct 2022 14:53:14 +0200 (CEST) Received: from mail-pf1-f225.google.com (mail-pf1-f225.google.com [209.85.210.225]) by mails.dpdk.org (Postfix) with ESMTP id 0AD20410D1 for ; Wed, 19 Oct 2022 14:53:12 +0200 (CEST) Received: by mail-pf1-f225.google.com with SMTP id g28so17120828pfk.8 for ; Wed, 19 Oct 2022 05:53:11 -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=Puj7OzGoQWzQ9dhD8HPrSaz0OOxVoW9rp5g9A1UUtB8=; b=UiGV6BnubV3cx3fCzZ15QLe5L4OHUtHgL9rEQ9KgTA/ste3IdE6RBHqP4D4JgzVoUq d3ukjy55sj2HcMXy/CmOYgdUhzBpbgMKw8fJwMiPnhNuRVHbvxaZwAQPydM6CxEUU9VB wtOhchmh1ec66+BbX3FVt8zOd8FnYPva2wWzE= 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=Puj7OzGoQWzQ9dhD8HPrSaz0OOxVoW9rp5g9A1UUtB8=; b=4vfFXJrXnzVAS9T7m9aFonvei4hs2GkrDUMZgU5CyVfe4Hub1lIjRNatUqkbzbi5bg ZTogy7H/qework64wmI0l3RzltF5+cCFls75clUw9MSXGLJzr5IwDKZTlRdfUZhmo3kY BsXx4SYaAMh/oM9whxDK06ZisGj8d2DgyeEPZ0LF9ZDuMfy64CfmOeqtafh9R5tgx8+y GI+8CGnYpN+Sg+3/skmTArWwgvNx3kBeYBi4EvXcVB/Mbx4+1nAicFSa9BUS/oapD+rz 2rnGvqJhT3lE/8GQMZ4JS+/aEcYU9vtx+5BhxCOi5lm3kL6tyiMLhY749nC1vNKpBAk2 I0cw== X-Gm-Message-State: ACrzQf07weUZHo5cmwV6yB2APKNPN0xw5xtPfXMOS1hSmOKZAZqyT5VB eOJQ5ybd+E3i0bww0dTJKlxzSasUwAABzyGotu8YcpVOj3SSL+83pgeFXxRahZheB6VFe4lIb8V BESAu26JR4YLPNshUSHAgwtLbx6Erg9qm4ZgHXFL7vk6UTFWfs/dzBOlUMvYtjpxwYlBokGa0 X-Google-Smtp-Source: AMsMyM7G95sgCBE5XhwfYHY5xQZzlAM1Drg1sGE+W5nv1RVpOiK/0XRpuL4BHXHBs+WAnbL75xQJKRN64p8c X-Received: by 2002:a05:6a00:1389:b0:566:1549:c5bc with SMTP id t9-20020a056a00138900b005661549c5bcmr8567287pfg.8.1666183991067; Wed, 19 Oct 2022 05:53:11 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id m3-20020a170902f64300b00179e238bc17sm603983plg.28.2022.10.19.05.53.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2022 05:53:11 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::105d]) by postal.iol.unh.edu (Postfix) with ESMTP id C7A2860524E4; Wed, 19 Oct 2022 08:53:09 -0400 (EDT) From: ohilyard@iol.unh.edu To: ci@dpdk.org Cc: aconole@redhat.com, alialnu@nvidia.com, Owen Hilyard Subject: [PATCH v2 0/6] Community Lab Container Definitions Date: Wed, 19 Oct 2022 08:53:01 -0400 Message-Id: <20221019125307.258582-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 | 152 ++++++++ containers/README.md | 137 +++++++ containers/container_builder.dockerfile | 26 ++ containers/template_engine/inventory.yaml | 356 ++++++++++++++++++ .../template_engine/inventory_schema.json | 153 ++++++++ containers/template_engine/make_dockerfile.py | 221 +++++++++++ containers/template_engine/poetry.lock | 220 +++++++++++ containers/template_engine/pyproject.toml | 21 ++ .../templates/containers.makefile.j2 | 31 ++ .../templates/containers/alpine.dockerfile.j2 | 33 ++ .../templates/containers/arch.dockerfile.j2 | 37 ++ .../templates/containers/base.dockerfile.j2 | 81 ++++ .../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, 1679 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