From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6927266035414335488 X-Received: by 2002:ac2:4217:: with SMTP id y23mr8277291lfh.368.1613396360933; Mon, 15 Feb 2021 05:39:20 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bc11:: with SMTP id b17ls2934730ljf.7.gmail; Mon, 15 Feb 2021 05:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdK0UcTxVXBFPUE7GkUXLehuKKidrRxcbIp0r3dM8tZrdbhnw0uO0tRul8yOJbnjun7mMS X-Received: by 2002:a2e:a54f:: with SMTP id e15mr9466863ljn.441.1613396359869; Mon, 15 Feb 2021 05:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613396359; cv=none; d=google.com; s=arc-20160816; b=K34WtgsZXqAD5UUPnQuIqUkHqRwtlMmmx3BfWSpNM7yx3Pv7ZvjqcFQ7PlYKlE5ApL I4CssJZIwFqLOoATPjKXxJGQyCFM4cgBOicP50I8nqz7ghaN+em+EiCdowE2ALmkin/5 IJ5JxuGdaOMsqRaqi9lW4wg1xRbbXADIlqaplqcslhn0G9EHLqpQ/hBAo73w/Uro4xwN r6FhTJGxjFQ66IHOgC6sSkM9qc//6B4uZAYqzxPNWxGTqpPzDfCRHHEfRk57smdjC5uC miAOJbUtr9Cpe4XK0P0f34WjybzEZi1iS31Xsb4Ge+iLZWfFT49wPMN6MDFFQ2/7n7P4 c3JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=PeQbcLZQ6O91Np7mJSy2qE9pjW3aeAwrtgHQgcUfdEg=; b=Z+wD7aCdCIFBytaU6FtGOtXy8Ly6hVaNGvdHEikVMUF9LfHoXvdFA9gGW6EBONjhpr 6+i90US3S8jRcZYSREo1/sodEUHwPhYm5H8l26KzsCRQhan4zUIvPWDdZ7csnmZTw59L 2kWf7NUf7zgvlLgCwzJ1nWxWMxigVZxvTLjPLldaQz59XbTZSIw26HBDexCbQvqlYZ72 yn9+JGQw1gSns9pIBCPe3kMRXhy/lM6PmcIrb1AvzTSlrXfudAVFDRsnTjSh9tctli4B lkgWuxotFzgEljP96nPcIvFPTyHG8NCTH6rEoRVA3LNF/+gLiWXHOiOR7nRnbsQnrHqE pKjA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id t21si514383lfe.3.2021.02.15.05.39.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Feb 2021 05:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 11FDdJZt010038 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 15 Feb 2021 14:39:19 +0100 Received: from md1sf36c.ad001.siemens.net ([139.22.119.30]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 11FDdIHD008716 for ; Mon, 15 Feb 2021 14:39:18 +0100 From: Silvano Cirujano Cuesta To: isar-users@googlegroups.com Subject: [PATCH v5 0/4] Add support for containerized root filesystems Date: Mon, 15 Feb 2021 14:39:14 +0100 Message-Id: <20210215133918.50988-1-silvano.cirujano-cuesta@siemens.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: Z4QoWrig3pAK This patch series provides support for containerized root filesystems, for both target images and SDKs. For containerized target images the new image type `container-img` has been added. For containerized SDKs the task `populate_sdk` has been extended. Containerized root filesystems are easy to distribute and run, enabling this way following scenarios: - Use ISAR to build container images meant to be run only in containers. - Use the same ISAR configuration to build images for containers, VMs and bare-metal. - Easy SDK distribution and "installation". - Quickly testing certain applications in the workstation using the target root filesystem. In order to build containerized target root filesystems `IMAGE_TYPE` has to be `container-img`, additionally the container image format can be selected with the variable `CONTAINER_FORMATS`. The default format is `docker-archive`. In order to build containerized SDKs the variable `SDK_FORMAT` has to provide any of the supported container formats (e.g. `docker-archive`). The default format is the legacy non-containerized: `tar_xz`. More information about its usage is documented in the file docs/user_manual.md. A PoC/demo of this functionality (only the SDK part) has been created based on the project https://github.com/siemens/meta-iot2050. Jan Kiszka already tested and liked it! => https://github.com/siemens/meta-iot2050/issues/86#issuecomment-768907845 Successful builds of both containerized target and SDK are available on the same PoC project: - https://github.com/Silvanoc/meta-iot2050/actions/runs/558311580 - https://github.com/Silvanoc/meta-iot2050/actions/runs/558311581 and also the resulting images: - https://github.com/users/Silvanoc/packages/container/package/meta-iot2050%2Fiot2050-debian-arm64 - https://github.com/users/Silvanoc/packages/container/package/meta-iot2050%2Fiot2050-debian-sdk-arm64 In order to get a feeling about its usage (you need Docker or Podman), follow these simple copy&paste instructions: https://github.com/Silvanoc/meta-iot2050/blob/master/kas/BUILDING-SDK-CONTAINER.md#running-the-sdk Build instructions are available in the upper part of that document. Two new dependencies are required to create containerized root filesystems (as specified in the documentation). Typical container image management actions (e.g. push an image to a container image regitry) are out of scope. Available tools (Docker, Skopeo, Buildah, Podman,...) should be used for these actions. A patch will follow this one to get the dependencies into the container images being provided by the project https://github.com/siemens/kas (for `kas-container`, for example). Silvano Cirujano Cuesta (4): classes: add root filesystem containerizing class classes: add new image type 'container-img' sdk: add support for containerized sdk docs: document creation of container images doc/user_manual.md | 127 ++++++++++++++++++ meta/classes/container-img.bbclass | 18 +++ .../classes/image-container-extension.bbclass | 79 +++++++++++ meta/classes/image-sdk-extension.bbclass | 42 +++++- meta/classes/image.bbclass | 1 + 5 files changed, 260 insertions(+), 7 deletions(-) create mode 100644 meta/classes/container-img.bbclass create mode 100644 meta/classes/image-container-extension.bbclass -- 2.30.0