From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6927266035414335488 X-Received: by 2002:a05:6402:605:: with SMTP id n5mr26598903edv.128.1614067725451; Tue, 23 Feb 2021 00:08:45 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:a1d6:: with SMTP id bx22ls3096959ejb.2.gmail; Tue, 23 Feb 2021 00:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzic6J0Zpca5De3YrMp+0JUvgnZPO0DEI9L6vjwkCvYEu4JhLYMALZQEsVbsZCgq/kpZwb X-Received: by 2002:a17:906:1e50:: with SMTP id i16mr12054298ejj.466.1614067724517; Tue, 23 Feb 2021 00:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614067724; cv=none; d=google.com; s=arc-20160816; b=YafwDJ02BNtDzEuyNuXOz+z7aLS/GlA5/qZmEkgdBb8PKE6JZN09H9xemBA7FzO/wW vy/jI5Z5gD6Rz0DseClz/beXhTlBhIT8XdqQQdjRqCD21xDOcWvzuOnCGF9m6+ChYFMm qh80DixF5aCTT0meb8OD8ORQo1rKon9lo0y7utissPPLss8O7oJs/N7tKS77AeVF3Abr br+mP6gRYLYfRzB9IcgCQqaEtlW0UlyTejnITS9o8LWmFUmS3CLVUoyhk3oWWa7J2bZD XJPNYFjaMeUOSnfIMBrkgQb6o3E4WvmJrBY8AgyEVZiJ/RSkmnQ0l0VEcLhSVPCyqPxo OWWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=InieL4SpG+0smqxSx2JGcCusNF8DUFRDekR9IxbVWtE=; b=wkBXwMNbnTdIxJT2yz3LjuEMHhttsV7YZUyikc5H9hxL2u9V680WS3UVc20eW9y/UG W+DLp4IW/dwqA42NJIotSl5QQ8bMu31dKj8VFUkZqnnjapabc0YOjlsmT6AWX+Wsj1YW 8KJd0uErhAWGtzJYtQw4s/Fuj7CztvTx2wuYWecu/VuLKqoLc6VdyuNYxJ8eaWJtcWZJ 4T4r3L79xkkvtZW7NdX2mwugpJfvWYvrhkOPbpCpEo3sLLMWOELGpgyb6xA8Mscdbq4S 6nFnyQiFSYIc/OyRENiCa0Rs8C3RPj+w5aFolQk8PoL3l9j2Q3uWUM4z2iusa5hQy+jI OtEQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id c14si833035edr.4.2021.02.23.00.08.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2021 00:08:44 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@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 gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 11N88i17010261 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 23 Feb 2021 09:08:44 +0100 Received: from [167.87.244.56] ([167.87.244.56]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 11N83hpP026351; Tue, 23 Feb 2021 09:03:43 +0100 Subject: Re: [PATCH v5 0/4] Add support for containerized root filesystems To: "[ext] Silvano Cirujano Cuesta" , isar-users@googlegroups.com References: <20210215133918.50988-1-silvano.cirujano-cuesta@siemens.com> From: Jan Kiszka Message-ID: <2d13129d-953d-6bca-cbd7-f1f6e19337d5@siemens.com> Date: Tue, 23 Feb 2021 09:03:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210215133918.50988-1-silvano.cirujano-cuesta@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: HCpJljYXGwVv On 15.02.21 14:39, [ext] Silvano Cirujano Cuesta wrote: > 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 > Looks good to me. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux