public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
To: isar-users@googlegroups.com
Subject: [PATCH v5 2/4] classes: add new image type 'container-img'
Date: Mon, 15 Feb 2021 14:39:16 +0100	[thread overview]
Message-ID: <20210215133918.50988-3-silvano.cirujano-cuesta@siemens.com> (raw)
In-Reply-To: <20210215133918.50988-1-silvano.cirujano-cuesta@siemens.com>

Add a new "image" class for generating a container image containing the
target root filesystem.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
---
 meta/classes/container-img.bbclass | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta/classes/container-img.bbclass

diff --git a/meta/classes/container-img.bbclass b/meta/classes/container-img.bbclass
new file mode 100644
index 0000000..79ef3e8
--- /dev/null
+++ b/meta/classes/container-img.bbclass
@@ -0,0 +1,18 @@
+# This software is a part of ISAR.
+# Copyright (C) Siemens AG, 2021
+#
+# SPDX-License-Identifier: MIT
+#
+# This class provides the task 'containerize_rootfs'
+# to create container images containing the target rootfs.
+
+do_container_image[stamp-extra-info] = "${DISTRO}-${MACHINE}"
+do_container_image[vardeps] += "CONTAINER_FORMATS"
+do_container_image(){
+    rootfs_id="${DISTRO}-${DISTRO_ARCH}"
+
+    bbdebug 1 "Generate container image in these formats: ${CONTAINER_FORMATS}"
+    containerize_rootfs "${IMAGE_ROOTFS}" "${rootfs_id}" "${CONTAINER_FORMATS}"
+}
+
+addtask container_image before do_image after do_image_tools
-- 
2.30.0


  parent reply	other threads:[~2021-02-15 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 13:39 [PATCH v5 0/4] Add support for containerized root filesystems Silvano Cirujano Cuesta
2021-02-15 13:39 ` [PATCH v5 1/4] classes: add root filesystem containerizing class Silvano Cirujano Cuesta
2021-02-15 13:39 ` Silvano Cirujano Cuesta [this message]
2021-02-15 13:39 ` [PATCH v5 3/4] sdk: add support for containerized sdk Silvano Cirujano Cuesta
2021-02-15 13:39 ` [PATCH v5 4/4] docs: document creation of container images Silvano Cirujano Cuesta
2021-02-22  9:16 ` [PATCH v5 0/4] Add support for containerized root filesystems Silvano Cirujano Cuesta
2021-02-23  8:03 ` Jan Kiszka
2021-03-02  9:05 ` Anton Mikanovich
2021-03-02  9:30   ` Silvano Cirujano Cuesta
2021-03-02 13:30     ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210215133918.50988-3-silvano.cirujano-cuesta@siemens.com \
    --to=silvano.cirujano-cuesta@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox