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 6D5D6A0548 for ; Tue, 11 Oct 2022 18:53:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E12A342B78; Tue, 11 Oct 2022 18:53:11 +0200 (CEST) Received: from mail-io1-f100.google.com (mail-io1-f100.google.com [209.85.166.100]) by mails.dpdk.org (Postfix) with ESMTP id C353D410E7 for ; Tue, 11 Oct 2022 18:53:10 +0200 (CEST) Received: by mail-io1-f100.google.com with SMTP id q196so5061193iod.8 for ; Tue, 11 Oct 2022 09:53:10 -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:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6obTR/k9pYRSMgUA4hBzjuxslOFE+aL1h3YkKTe4MR0=; b=VTpkzKnDIsdUqLONliRZrjXij8pXrGpIpnLd0/vJ823rcl1WI5m8Q7/arrya2OoXc4 G3Lr/sHdJgZgTfHdkHpIF5vhjYlfz23DD47GuYthWELayStCEd148jl2lrSvYaLNa5jH CgNZEbg3ckoi17A4z1ctAp6AaVW7kv1RbOXCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6obTR/k9pYRSMgUA4hBzjuxslOFE+aL1h3YkKTe4MR0=; b=6+FLsf1NWFtlDje9uW+xPA5OwVKsm9OM5WQSTvnDVP9YiKSkZhTPQL45ir2yPNWuZR y09Yr0MHFglWOZhaptV/6xZ+P4Q+Sa+I1R6q4VLQ5+F7dMHanQpB6vH6F5INiqk2yhzi LgFJfc0Mp2Kj8OLKlPdly+FVZuVa5snQYPpSdvZcHagTyYxcjTtd4l++fZoxrD9RAyi8 3hothUVid2iMpJA2Yo6Dh2KnCcrfcoAnTDFzBk1tu5lJaYv/imWGgVLccjTajVWWNcBf +S4trMV5pXlmXpPsi6TIZNSRrb2rl0fNh7fzG3h4kFv8se+H8cLRbExT0raJwEULobH+ mAzg== X-Gm-Message-State: ACrzQf3eaUybwFthxTt4Jmll1sKlsF2URwgfTtbjXdYTskz7JAF1eFPR 0862h9RzXc95bmbC82oGtBeDCvK2uWvCBGa8SpojI/Pz0K6ldbh+lerVg8DaBFROE/mkNHjvqMp GTZu9gpzsAu+WSVh831Sm1nWBJLda/kdaVuLoTM3MFYL9geMTCHkjC2exF1O4BXqxvC+RHFJOqT vXjgE2U0HCHb+l X-Google-Smtp-Source: AMsMyM4f4LXXMuSvMjdV4h+SrL9CPwx+2coq6KPsPA+3/W2bJbN6LHZW7kCMKxSrppo99q1q6cV81ernCOWh X-Received: by 2002:a05:6638:3711:b0:363:a1f2:df4e with SMTP id k17-20020a056638371100b00363a1f2df4emr10108507jav.226.1665507190241; Tue, 11 Oct 2022 09:53:10 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id b10-20020a02190a000000b0036342bd5ca7sm921825jab.52.2022.10.11.09.53.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Oct 2022 09:53:10 -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 277F56052526; Tue, 11 Oct 2022 12:53:05 -0400 (EDT) From: ohilyard@iol.unh.edu To: ci@dpdk.org Cc: aconole@redhat.com, Owen Hilyard Subject: [PATCH 5/6] containers/container_builder: Container for python scripts Date: Tue, 11 Oct 2022 12:52:54 -0400 Message-Id: <20221011165255.506428-6-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221011165255.506428-1-ohilyard@iol.unh.edu> References: <20221011165255.506428-1-ohilyard@iol.unh.edu> 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 Adds a container that can be used to run the python scripts to create the Dockerfiles for the CI containers. This removes a large number of python environment dependencies from the host requirements. Signed-off-by: Owen Hilyard --- containers/container_builder.dockerfile | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 containers/container_builder.dockerfile diff --git a/containers/container_builder.dockerfile b/containers/container_builder.dockerfile new file mode 100644 index 0000000..8a38e53 --- /dev/null +++ b/containers/container_builder.dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:22.04 + +ENV DPDK_CI_CONTAINERS_COMPOSE_FILE_BUILDER=podman-compose +ENV DPDK_CI_CONTAINER_BUILDER_PROGRAM=podman +ENV DPDK_CI_CONTAINERS_PYTHON3_CMD=python3 +ENV DEBIAN_FRONTEND=noninteractive + +# If building on a RHEL host, 'yum repolist' will refresh the RHEL repos from the host this is being built on +RUN apt-get update && apt-get install --no-install-recommends -y \ + python3 python3-pip \ + # Makefile deps + make git +RUN pip3 install poetry + +RUN git config --global --add safe.directory /container_workspace/container_context/dpdk +RUN git config --global --add safe.directory /container_workspace/container_context/libabigail + +# Globally install required python libraries +COPY template_engine/pyproject.toml /tmp/pyproject.toml +COPY template_engine/poetry.lock /tmp/poetry.lock +WORKDIR /tmp/ +RUN poetry config virtualenvs.create false +RUN poetry install --no-interaction --no-ansi + +RUN mkdir /container_workspace +WORKDIR /container_workspace -- 2.34.1