mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00

As of https://github.com/containers/automation_images/pull/357 our CI VMs include a local registry preloaded with all(*) images used in tests. * where "all" means "most". This commit installs a new registries.conf that redirects docker and quay to the new local registry. The hope is that this will reduce CI flakes. Since tests change over time, and new tests may require new images, this commit also adds a mechanism for pulling in remote images at test run time. Obviously this negates the purpose of the cache, since it introduces a flake pain point. The idea is: DO NOT DO THIS UNLESS ABSOLUTELY NECESSARY, and then, if we have to do this, hurry up and spin new CI VMs that include the new image(s). Signed-off-by: Ed Santiago <santiago@redhat.com>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
#####
|
|
##### CAUTION! All changes to this file must also be
|
|
##### CAUTION! mirrored to registries-cached.conf !
|
|
#####
|
|
##### This is the registries.conf file used IN DEVELOPER ENVIRONMENT.
|
|
##### For the one used in CI, see registries-cached.conf
|
|
#####
|
|
# Note that changing the order here may break tests.
|
|
unqualified-search-registries = ['docker.io', 'quay.io', 'registry.fedoraproject.org']
|
|
|
|
[[registry]]
|
|
# In Nov. 2020, Docker rate-limits image pulling. To avoid hitting these
|
|
# limits while testing, always use the google mirror for qualified and
|
|
# unqualified `docker.io` images.
|
|
# Ref: https://cloud.google.com/container-registry/docs/pulling-cached-images
|
|
prefix="docker.io"
|
|
location="mirror.gcr.io"
|
|
|
|
# 2020-10-27 a number of images are not present in gcr.io, and podman
|
|
# barfs spectacularly when trying to fetch them. We've hand-copied
|
|
# those to quay, using skopeo copy --all ...
|
|
[[registry]]
|
|
prefix="docker.io/library"
|
|
location="quay.io/libpod"
|
|
|
|
# For testing #11933 to make sure that registries.conf is consulted unless
|
|
# --tls-verify is used during container creation.
|
|
[[registry]]
|
|
location="localhost:5000"
|
|
insecure=true
|
|
|
|
# Alias used in tests.
|
|
[aliases]
|
|
"podman-desktop-test123"="florent.fr/will/like"
|