diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-12 16:09:12 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-21 18:00:26 -0500 |
| commit | 485e35da38150388b86dc7d86840368d2fca1bfa (patch) | |
| tree | 14a418016c3428bbd524ab089368a1b55e4f2e08 /recipes-extended | |
| parent | 20b59031dd03283d464802f5d820539dfd54c77a (diff) | |
| download | meta-virtualization-485e35da38150388b86dc7d86840368d2fca1bfa.tar.gz | |
container-registry: add local OCI registry infrastructure
Add container registry support for Yocto container workflows:
- container-registry.bbclass with helper functions
- container-registry-index.bb generates helper script with baked paths
- docker-registry-config.bb for Docker daemon on targets
- container-oci-registry-config.bb for Podman/Skopeo/Buildah targets
- IMAGE_FEATURES container-registry for easy target configuration
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended')
| -rw-r--r-- | recipes-extended/images/container-image-host.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-extended/images/container-image-host.bb b/recipes-extended/images/container-image-host.bb index 454fcd45..723f0cf5 100644 --- a/recipes-extended/images/container-image-host.bb +++ b/recipes-extended/images/container-image-host.bb | |||
| @@ -84,6 +84,14 @@ REQUIRED_DISTRO_FEATURES:append = " ${@bb.utils.contains('VIRTUAL-RUNTIME_contai | |||
| 84 | # of the host name to make it unique | 84 | # of the host name to make it unique |
| 85 | IMAGE_FEATURES[validitems] += "virt-unique-hostname" | 85 | IMAGE_FEATURES[validitems] += "virt-unique-hostname" |
| 86 | IMAGE_FEATURES[validitems] += "container-tools" | 86 | IMAGE_FEATURES[validitems] += "container-tools" |
| 87 | IMAGE_FEATURES[validitems] += "container-registry" | ||
| 88 | |||
| 89 | # Container registry configuration packages (opt-in via IMAGE_FEATURES += "container-registry") | ||
| 90 | # Requires CONTAINER_REGISTRY_URL and/or DOCKER_REGISTRY_INSECURE to be set | ||
| 91 | FEATURE_PACKAGES_container-registry = "\ | ||
| 92 | ${@bb.utils.contains_any('VIRTUAL-RUNTIME_container_engine', 'docker docker-moby', 'docker-registry-config', '', d)} \ | ||
| 93 | ${@bb.utils.contains_any('VIRTUAL-RUNTIME_container_engine', 'podman containerd cri-o', 'container-oci-registry-config', '', d)} \ | ||
| 94 | " | ||
| 87 | 95 | ||
| 88 | IMAGE_FEATURES += "ssh-server-openssh" | 96 | IMAGE_FEATURES += "ssh-server-openssh" |
| 89 | IMAGE_FEATURES += "package-management" | 97 | IMAGE_FEATURES += "package-management" |
