summaryrefslogtreecommitdiffstats
path: root/recipes-containers/container-registry/files/container-registry-dev.yml
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-01-12 16:09:12 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 03:32:52 +0000
commit87ed625c043e4cdbabf569227b189823cd08db8e (patch)
treea307f96f218f3be0e2741fe13079400b24ee8487 /recipes-containers/container-registry/files/container-registry-dev.yml
parent33944038c68d8e497e8dd9861c5ca6c4da7d48e5 (diff)
downloadmeta-virtualization-87ed625c043e4cdbabf569227b189823cd08db8e.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-containers/container-registry/files/container-registry-dev.yml')
-rw-r--r--recipes-containers/container-registry/files/container-registry-dev.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-containers/container-registry/files/container-registry-dev.yml b/recipes-containers/container-registry/files/container-registry-dev.yml
new file mode 100644
index 00000000..ed0a7c88
--- /dev/null
+++ b/recipes-containers/container-registry/files/container-registry-dev.yml
@@ -0,0 +1,61 @@
1# Container Registry Development Configuration
2# ============================================
3#
4# This is a simple configuration for running a local container registry
5# for development purposes. It uses filesystem storage and listens on
6# port 5000 without TLS.
7#
8# Usage:
9# oe-run-native docker-distribution-native registry serve \
10# /path/to/container-registry-dev.yml
11#
12# Or with explicit paths:
13# /path/to/sysroot-native/usr/sbin/registry serve \
14# /path/to/container-registry-dev.yml
15#
16# For production, consider:
17# - Enabling TLS
18# - Adding authentication
19# - Using cloud storage (S3, GCS, Azure)
20# - Setting up garbage collection
21#
22# See: https://distribution.github.io/distribution/about/configuration/
23
24version: 0.1
25
26log:
27 level: info
28 formatter: text
29 fields:
30 service: container-registry
31
32storage:
33 filesystem:
34 # Storage directory - override with REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY env var
35 rootdirectory: /tmp/container-registry
36 # Don't redirect to external storage
37 redirect:
38 disable: true
39 # Maintenance settings
40 maintenance:
41 uploadpurging:
42 enabled: true
43 age: 168h # 1 week
44 interval: 24h
45 dryrun: false
46
47http:
48 addr: :5000
49 headers:
50 X-Content-Type-Options: [nosniff]
51 # For development - allow HTTP. In production, use TLS.
52 # tls:
53 # certificate: /path/to/cert.pem
54 # key: /path/to/key.pem
55
56# Health check endpoint
57health:
58 storagedriver:
59 enabled: true
60 interval: 10s
61 threshold: 3