From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output
Date: Sun, 15 Nov 2026 20:09:48 -0800 (PST) [thread overview]
Message-ID: <6afa820c.01036f89.11cd8a.6ff7@mx.google.com> (raw)
In-Reply-To: <1074218742.1918618.1793711762503.JavaMail.zimbra@savoirfairelinux.com>
Hi Tanguy,
> We'd be happy to contribute follow-up enhancements once you've pushed
> your WIP branch. In the meantime, we'd also be glad to help test the
> changes or review before merging.
The series is now on master-next. Testing it against your containers
and reviewing it would be great.
> Based on our current config.json, the runtime settings we would like
> to express through recipe variables are listed below. The OCI*BUNDLE*\*
> names are only suggestions:
I went with OCI_RUNTIME_* for these, since they're runtime spec
settings. Everything on your list is there, plus devices, terminal and
a read-only rootfs. The defaults are in the variables, so assigning one
replaces it and += / :remove adjust it. image-oci.bbclass has the
format of each one, and docs/container-bundling.md lists them. Setting
both the uid and gid mappings gives the container a private user
namespace.
The bundle is selected with OCI_IMAGE_OUTPUT_MODE = "bundle", or
"image bundle" for both, and deploys an -oci-bundle.tar. It's unpacked
from the final image, so process.args is the entrypoint followed by
cmd.
> Also, our container config.json needs to hold template fields that will be
> filled at installation. Example: a mountpoint to an instance's specific data
> directory. The proposal sounds compatible, we can use a placeholder like
> @INSTANCE_DIR@ in the variables and need to do our post-processing
> at runtime.
Values like @INSTANCE_DIR@ are passed through as is, for you to fill
in.
There are also crun and runc container profiles, BUNDLED_CONTAINERS
installs bundles with a systemd service on those hosts, and vrnc / vcrn
in the vcontainer SDK run a bundle on the build host.
> Additional runtime settings not listed above may also need to be overridden
> by downstream users (e.g., apparmorProfile, oomScoreAdj, scheduler
> settings, and hooks).
Those aren't in yet. If you need them, let me know and I'll do some
more thinking on them.
Bruce
prev parent reply other threads:[~2026-11-16 4:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 14:47 [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output Tanguy Raufflet
2026-09-30 14:47 ` [meta-virtualization][PATCH 2/2] app-container-oci-bundle.bb: add a new demo recipe using an OCI bundle Tanguy Raufflet
2026-09-30 15:56 ` [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output Bruce Ashfield
2026-10-12 12:24 ` Tanguy Raufflet
2026-10-22 18:51 ` Bruce Ashfield
2026-11-03 13:16 ` Tanguy Raufflet
2026-11-05 17:24 ` Bruce Ashfield
2026-11-16 4:09 ` Bruce Ashfield [this message]
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=6afa820c.01036f89.11cd8a.6ff7@mx.google.com \
--to=bruce.ashfield@gmail.com \
--cc=meta-virtualization@lists.yoctoproject.org \
--cc=tanguy.raufflet@savoirfairelinux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.