# Container registry configuration fragment
#
# Include from local.conf to enable a local development registry:
#
#   require conf/distro/include/container-registry.conf
#
# Defaults to an insecure (HTTP) registry at localhost:5000 with
# namespace "yocto". Override any variable after the require line.
#
# This fragment enables the container-registry IMAGE_FEATURES, which
# installs registry configuration into the target rootfs (daemon.json
# for Docker, registries.conf.d/ for Podman/containerd).
#
# For a secure (TLS + authentication) registry, override these after
# the require:
#
#   CONTAINER_REGISTRY_URL = "registry.example.com:5000"
#   CONTAINER_REGISTRY_SECURE = "1"
#   CONTAINER_REGISTRY_USERNAME = "myuser"
#   # Optional: enable htpasswd authentication
#   CONTAINER_REGISTRY_AUTH = "1"
#   # Optional: custom namespace
#   CONTAINER_REGISTRY_NAMESPACE = "myproject"

CONTAINER_REGISTRY_URL ?= "localhost:5000"
CONTAINER_REGISTRY_NAMESPACE ?= "yocto"
CONTAINER_REGISTRY_INSECURE ?= "1"

IMAGE_FEATURES:append = " container-registry"
