-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As of containers/automation_images#357 our CI VMs include a local registry preloaded with all(*) images used in tests. * where "all" means "most". This commit defines a new registries-cached.conf, used in tests, 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 <[email protected]>
- Loading branch information
1 parent
8f59436
commit 52df6e0
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# As of July 2024, all CI VMs include a local registry prepopulated | ||
# with all container images used in tests: | ||
# | ||
# https://github.com/containers/automation_images/pull/357 | ||
# https://github.com/containers/podman/pull/22726 | ||
# https://github.com/containers/buildah/pull/5584 | ||
# | ||
# From time to time -- infrequently, we hope! -- existing images are | ||
# updated, or tests are added that require new images. Those must be | ||
# prefetched on each CI job, at least until new VMs are built. This | ||
# file contains those images. | ||
# | ||
# Format is one FQIN per line. Enumerate them below: | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Note that changing the order here may break tests. | ||
unqualified-search-registries = ['docker.io', 'quay.io', 'registry.fedoraproject.org'] | ||
|
||
[[registry]] | ||
# As of July 2024, all CI VMs come with a local registry prepopulated | ||
# with all images needed by tests. | ||
prefix="docker.io" | ||
location="127.0.0.1:60333" | ||
insecure=true | ||
|
||
[[registry]] | ||
prefix="quay.io" | ||
location="127.0.0.1:60333" | ||
insecure=true | ||
|
||
[[registry]] | ||
prefix="docker.io/library" | ||
location="127.0.0.1:60333/libpod" | ||
insecure=true |