Skip to content
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

chore(build-check): Add check script to verify that docker images used in registry are valid #814

Closed
wants to merge 1 commit into from

Conversation

sunix
Copy link
Contributor

@sunix sunix commented Jan 25, 2021

Signed-off-by: Sun Tan sutan@redhat.com

What does this PR do?

Check that each images used in the registry are valid

Screenshot/screencast of this PR

Selection_179

Failing:
Selection_180

What issues does this PR fix or reference?

Fix eclipse-che/che#18747

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

…d in registry are valid.

Signed-off-by: Sun Tan <sutan@redhat.com>
Copy link
Contributor

@ericwill ericwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Sun, a few things:

  • We have a PR check that runs digest-validation-pr.sh. After this change it won't be needed (build runs on every PR) so it can be removed
  • If the build runs with USE_DIGESTS=true, then skopeo inspect will be run twice -- maybe run yours only if USE_DIGESTS=false?
    • In other places where skopeo inspect is called, the option --tls-verify=false is specified. Do we need that here too?

@benoitf
Copy link
Contributor

benoitf commented Jan 25, 2021

FYI i've an upcoming PR that remove all .sh scripts, everything being checked when generating files.

@sunix
Copy link
Contributor Author

sunix commented Jan 25, 2021

I suggest that we postpone the work to be done for these checks, and see/discuss what to do after Florent's PR merged. @ericwill works for you?

@ericwill
Copy link
Contributor

I suggest that we postpone the work to be done for these checks, and see/discuss what to do after Florent's PR merged. @ericwill works for you?

Sounds good to me.

@benoitf
Copy link
Contributor

benoitf commented Jan 26, 2021

FYI #815 here is the related PR

@sunix
Copy link
Contributor Author

sunix commented Jan 27, 2021

@benoitf could you confirm that these checks won't be necessary anymore with #815 ?

@benoitf
Copy link
Contributor

benoitf commented Jan 27, 2021

yes I confirm that as digests are retrieved, it's ensuring that the image/tag do exists
If not, there will be a build failure

@sunix
Copy link
Contributor Author

sunix commented Jan 28, 2021

yes I confirm that as digests are retrieved, it's ensuring that the image/tag do exists
If not, there will be a build failure

OK I am closing this one so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure plug-in registry has valid data when building image
3 participants