Skip to content

RFC Initial functional vcontainer --config feature for CI auth

Tim Orling yocto-meta-virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vcontainer: add --config / VDKR_CONFIG for docker/podman auth credentialsrecipes-containers/vcontainer/README.md recipes-containers/vcontainer/files/vcontainer-common.sh recipes-containers/vcontainer/files/vcontainer-init-common.sh +3 more+392 -00 replies
2/4tests: add vcontainer --config / VDKR_CONFIG auth plumbing tests.gitignore tests/test_vcontainer_auth_config.py+643 -00 replies
3/4vcontainer-initramfs-create.inc: depend on virtual/kernel:do_deployrecipes-containers/vcontainer/vcontainer-initramfs-create.inc+14 -51 reply
4/4vcontainer-tarball: fix SDK environment script for CIrecipes-containers/vcontainer/vcontainer-tarball.bb+57 -122 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Initial functional vcontainer --config feature for CI auth

This is an initial attempt to share a new feature for vcontainer which mounts credentials (e.g. ~/.docker/config.json or podman's auth.json) into QEMU as a 9p mount. This avoids some ugly hoops we would have to jump through to pass the credentials with --password-stdin.

This series was heavily reliant on Claude Cowork, and hence is a bit verbose in places. I chose to share it as is (and as tested) for this initial RFC.

The tests (test_vcontainer_auth_config.py) all pass in a local Yocto AutoBuilder test run.

The feature itself was also tested on a local Yocto AutoBuilder 'containers-library' run which successfully pushed a 'python' container to registry.yocto.io[1] and quay.io/yocto[2] with the "Robot Account" or equivalent credentials.

Once we agree upon a functional state of this patch series, the changes for yocto-autobuilder2 and yocto-autobuilder-helper can be shared in a meaningful way, since they are dependent upon this feature.

[1] https://registry.yocto.io/account/sign-in?globalSearch=library
[2] https://quay.io/repository/yocto/python?tab=tags

Tim Orling (4):
vcontainer: add --config / VDKR_CONFIG for docker/podman auth
credentials
tests: add vcontainer --config / VDKR_CONFIG auth plumbing tests vcontainer-initramfs-create.inc: depend on virtual/kernel:do_deploy
vcontainer-tarball: fix SDK environment script for CI

 .gitignore                                    |   1 +
 recipes-containers/vcontainer/README.md       |  54 ++
 .../vcontainer/files/vcontainer-common.sh     |  18 +
 .../files/vcontainer-init-common.sh           |  54 ++
 .../vcontainer/files/vdkr-init.sh             |  58 ++
 .../vcontainer/files/vpdmn-init.sh            |  61 ++
 .../vcontainer/files/vrunner.sh               | 147 ++++
 .../vcontainer-initramfs-create.inc           |  19 +-
 .../vcontainer/vcontainer-tarball.bb          |  69 +-
 tests/test_vcontainer_auth_config.py          | 642 ++++++++++++++++++
 10 files changed, 1106 insertions(+), 17 deletions(-)
 create mode 100644 tests/test_vcontainer_auth_config.py
Signature · 1 line
2.50.1 (Apple Git-155)