This adds configuration and binary support for the generic registry. The container
image now supports two registry modes:
1. **dockerregistry** (default): OpenShift-integrated registry with authentication,
quotas, mirroring, and cluster integration. Uses /config.yml configuration.
2. **distribution**: Generic distribution/distribution registry for standalone use cases
without OpenShift-specific features. Uses /etc/registry/config.yaml configuration.
The generic registry configuration is sourced from:
https://github.com/openshift/appliance/blob/master/registry/config.yml
This provides flexibility to run the same container image either as an
OpenShift-integrated registry or as a standalone generic registry depending
on which binary and configuration are used.
To use the generic registry:
podman run -e REGISTRY_CONFIGURATION_PATH=/etc/registry/config.yaml <image> /usr/bin/distribution
Assisted-by: Claude <noreply@anthropic.com>
In order to satisfy the blunderbuss and approvers plugins for the k8s CI
systems we are about to adopt, we need to add OWNERS files to
directories in Origin. The files contain reviewers and approvers for the
directory. Reviewers are members that blunderbuss will assign pull
requests to; approvers are members from whom an LGTM is necessary to
merge a pull request that touches files in the directory.
The inital values in these OWNERS files are generated by looking at the
most active contributors to any directory. The top ten most active
contributors to a directory are listed as reviewers; the top five most
active contributors that have merge rights with the current system are
listed as approvers.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Support enabling an HTTP pprof server in the registry command. When
the OPENSHIFT_PROFILE environment variable is present, a pprof
server will be started bound to the specified address. The server can
be exposed through a service.
Use this environment variable as a fallback for missing config argument.
Unset it to avoid a warning during config file parsing.
Signed-off-by: Michal Minar <miminar@redhat.com>