mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 21:11:41 -09:00
The container/image repository is the standards regpository that drives
the image management in container tools, like podman or skopeo. Besides
a Go library, it also prodvides the template configuration files used
by those tools; those files can also serve as default ones.
Install those files instead of the canned ones we cary in podman, and
change podman to use this new package too.
The registry file needs a fixup, as it by default does not allow
searching unqualified images (i.e. those that do not contain a registry
name) in a default registry, for security reasons. However, the Docker
Hub is traditionally a registry that can be accessed without being
specified, so we make that possible.
As was noted in ebbaac08e3 (package/podman: new package), "[p]roviding
actual files is going to be use-case dependent, and interested parties
will have to provide their own config files, e.g. in a rootfs overlay."
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
26 lines
868 B
Makefile
26 lines
868 B
Makefile
################################################################################
|
|
#
|
|
# containers-image-config
|
|
#
|
|
################################################################################
|
|
|
|
CONTAINERS_IMAGE_CONFIG_VERSION = v5.35.0
|
|
CONTAINERS_IMAGE_CONFIG_SITE = https://github.com/containers/image
|
|
CONTAINERS_IMAGE_CONFIG_SITE_METHOD = git
|
|
|
|
CONTAINERS_IMAGE_CONFIG_LICENSE = Apache-2.0
|
|
CONTAINERS_IMAGE_CONFIG_LICENSE_FILES = LICENSE
|
|
|
|
define CONTAINERS_IMAGE_CONFIG_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0644 \
|
|
$(@D)/default-policy.json \
|
|
$(TARGET_DIR)/etc/containers/policy.json
|
|
$(INSTALL) -D -m 0644 \
|
|
$(@D)/registries.conf \
|
|
$(TARGET_DIR)/etc/containers/registries.conf
|
|
$(SED) '/^# unqualified-search-registries = .*/s//unqualified-search-registries = ["docker.io"]/' \
|
|
$(TARGET_DIR)/etc/containers/registries.conf
|
|
endef
|
|
|
|
$(eval $(generic-package))
|