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 6FD8942E99; Mon, 17 Jul 2023 23:11:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 484E540A80; Mon, 17 Jul 2023 23:11:38 +0200 (CEST) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by mails.dpdk.org (Postfix) with ESMTP id EA10A4068E for ; Mon, 17 Jul 2023 23:11:36 +0200 (CEST) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-76731802203so467625085a.3 for ; Mon, 17 Jul 2023 14:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689628296; x=1692220296; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SYm0vgihqP8r/IpdjiDVU2YNoaLzR2dj0rMgsFP7ySQ=; b=HcXUHH/xIl7JCUEsY0TAnpAqC7iZyFb6jGzPk3dgzOZ9lAGMUya32jL5y7r8C3qPu5 ERvjukc0m3U7edgieTQC6hUdgR24nrjaX+PVnZbz6pjBrrMG6zY7tU4H53le7CTu+9zd MWe3vekWBS30vXSlWo9X3U1OkA+PFB+wJaMYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689628296; x=1692220296; 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=SYm0vgihqP8r/IpdjiDVU2YNoaLzR2dj0rMgsFP7ySQ=; b=eDld/r8MslYhPIEBx5TmV3wDuoGFaZoIOj0qijcAGGJhGhbDrtkI/tx6ZxvqDY97Ft j0C68nWYsQ//228tpAFgYYJni0u2MdV5ObE08OaJE3XtGUnHLNzYQrq2ope1shcnqQmA TxFCquNPHhAZ6BMg5kevVdil/f5joqd24R+NFnCTJER/rwIUZ985DooADAze+gU+12k7 3dDhy5e96gdOQqwjRGaDh7SK/1WEO0dn3h2ODMmghgFARho4r6UbLNbOfB/MH1q2/Yr9 uwoMSTTumCyMkXv2rUkWmsXqIFtHigp0y31AjIbC9p7SZOcFIXv4KHpdxoyLqG/cNpw6 nuXA== X-Gm-Message-State: ABy/qLYyDDaNZ5b381wNGt4TnFvg/bgFKaUaoOwRBQxY6T0tbttZYDZs Yi+Yq0weXbdCZkXjcE+xha/cFsF3Y/kXAFnVRVcc1uU1PdESDuXZoilB/hqjpEnwJ0gr2uu2F98 X6u6Ym5mtayCWzMoUFjo29MP0623JZIsnN8cB3xayCVUnjgWX1ucJN6cFCUjw6A== X-Google-Smtp-Source: APBJJlFDpyT65lrvi1hBroGEsBxARjxpT6oBTUpCgvnnqSGXD7TqU0hxcRKbfKWMW0nAAbf5pD+RKA== X-Received: by 2002:ac8:7f07:0:b0:403:b395:33e3 with SMTP id f7-20020ac87f07000000b00403b39533e3mr18397480qtk.52.1689628296145; Mon, 17 Jul 2023 14:11:36 -0700 (PDT) Received: from pogmachine2.loudonlune.net ([216.212.51.182]) by smtp.gmail.com with ESMTPSA id ev10-20020a05622a510a00b003f9e58afea6sm153695qtb.12.2023.07.17.14.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 14:11:35 -0700 (PDT) From: Adam Hassick To: ci@dpdk.org Cc: aconole@redhat.com, alialnu@nvidia.com, Adam Hassick Subject: [PATCH v8 0/6] Community Lab Containers and Builder Engine Date: Mon, 17 Jul 2023 17:08:09 -0400 Message-ID: <20230717210815.29737-1-ahassick@iol.unh.edu> X-Mailer: git-send-email 2.41.0 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 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. --- v2: * Added poetry.lock * Remove duplicates in inventory file * Fix typo in base container template v3: * Libabigail is now not built by default unless DPDK_CI_CONTAINERS_BUILD_ABI=y * Made minimum podman version 4.0.0 due to dependencies on cache mounts v4: * Fix whitespace errors v5: * Updated container templates and inventory * Add support for OCI manifests * Update README to reflect changes v6: * Fix spelling errors and whitespace errors v7: * Add workaround to Arch template to install Python packages as root * Compare against v4 and polish the patchset v8: * Fix typos * Correct the default for the dpdk-stable clone URL 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 | 250 ++++++++++ containers/README.md | 178 +++++++ containers/container_builder.dockerfile | 26 + containers/template_engine/inventory.yaml | 470 ++++++++++++++++++ .../template_engine/inventory_schema.json | 221 ++++++++ containers/template_engine/make_dockerfile.py | 358 +++++++++++++ containers/template_engine/poetry.lock | 220 ++++++++ containers/template_engine/pyproject.toml | 21 + .../templates/containers.makefile.j2 | 73 +++ .../templates/containers/alpine.dockerfile.j2 | 3 + .../templates/containers/arch.dockerfile.j2 | 39 ++ .../templates/containers/base.dockerfile.j2 | 120 +++++ .../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 + .../debian11_arm_ipsec.dockerfile.j2 | 16 + .../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/fedora_clang.dockerfile.j2 | 8 + .../containers/fedora_coverity.dockerfile.j2 | 10 + .../containers/opensuse.dockerfile.j2 | 10 + .../containers/redhat_family.dockerfile.j2 | 5 + .../templates/containers/rhel.dockerfile.j2 | 16 + .../templates/containers/rhel7.dockerfile.j2 | 15 + .../templates/containers/rhel8.dockerfile.j2 | 15 + .../templates/containers/rhel9.dockerfile.j2 | 19 + .../templates/containers/rpm.dockerfile.j2 | 3 + .../templates/containers/ubuntu.dockerfile.j2 | 3 + .../containers/ubuntu20.04.dockerfile.j2 | 12 + .../containers/ubuntu22.04.dockerfile.j2 | 3 + .../containers/ubuntu_cross.dockerfile.j2 | 11 + .../containers/ubuntu_sve.dockerfile.j2 | 12 + 36 files changed, 2212 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/debian11_arm_ipsec.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/fedora_clang.dockerfile.j2 create mode 100644 containers/template_engine/templates/containers/fedora_coverity.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.41.0