-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RD_USE_GHCR_IMAGES option to BATS to pull images from ghcr.io #4917
Conversation
5f76b53
to
3db7552
Compare
9ad513a
to
92b741d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Needs an entry in the main README file
- Needs an upfront check that
skopeo
has been installed when set - Needs to be reviewed by someone with ghcr.io credentials
What do you expect to be documented in the README? All the variables are kind-of documented in
Note that the mirror script only needs to be run when we add another image in the I think I misunderstood the comment, and you are talking about the BATS tests. They don't use
Or you could just trust that it works by checking https://github.com/orgs/rancher-sandbox/packages?tab=packages&q=bats to see that all the images have been copied. I did run the script to make those copies. You'll notice that I've modified the PR to put all images under I made additional changes to the "allowed images" logic, so you may want to re-review those parts of the PR. |
Fails on Linux:
Another failure:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you to double-quote the expressions in ghcr-mirror.sh
. Everything else looks good, and tests finally passed.
ea63de2
to
52e6e30
Compare
This avoids hitting the pull rate limit when running multiple full BATS runs in sequence, especially if not logged into Docker Hub. Pull rate limit for docker.io is 100 pulls / 6 hours, or twice that when authenticated. Signed-off-by: Jan Dubois <jan.dubois@suse.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This avoids hitting the pull rate limit when running multiple full BATS runs in sequence, especially if not logged into Docker Hub.
Pull rate limit for docker.io is 100 pulls / 6 hours, or twice that when authenticated.