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
Optionally use public images #274
Optionally use public images #274
Conversation
Hi @smuda. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@cpmeadors @jensfr ptal |
/ok-to-test |
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
Thanks @smuda
I am concerned with these changes. I understand the desire to have everything build-able for the community. No one thinks we should have private RH images required. The problem I see is that this is working around a problem that cause by internal RH build processes. The proper solution is to use all publicly available resources here and fix downstream. |
I agree this is a workaround and it would be much better to have public images that is always used. Could you give me URL's for such images? I'd be happy to adjust the PR accordingly. |
Hi @smuda, thanks for working on this ! My overall concern with the approach you've taken is that it looks over-engineered. Especially, I don't quite understand the goal of the new It seems that we'd just want something like :
and have The targets would work as is for upstream and downstream would have to do something like :
Am I missing something ? |
/hold |
New changes are detected. LGTM label has been removed. |
e1371cd
to
4eb64d1
Compare
Yes, I might have over-engineered a bit. 😀 I've simplified Makefile changes to simply allow overriding the images and added documentation to DEVELOPMENT.md with the appropriate public images. The PR still does not address @cpmeadors comment about always having public images, but perhaps it's a step in the right direction? |
@gkurz ptal |
docs/DEVELOPMENT.md
Outdated
@@ -22,6 +22,17 @@ In summary: | |||
- log in from the command line with the provided command | |||
- use "oc registry login" to save the token locally | |||
|
|||
### Using public images | |||
|
|||
If you cannot login to registry.ci.openshift.org, a temporary solution is to use |
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.
Nit: trailing space at end of line.
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.
I've removed trailing whitespace.
@@ -1,5 +1,7 @@ | |||
# Use OpenShift golang builder image | |||
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.18-openshift-4.11 AS builder | |||
ARG BUILDER_IMAGE=${BUILDER_IMAGE:-registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.18-openshift-4.11} | |||
ARG TARGET_IMAGE=${TARGET_IMAGE:-registry.ci.openshift.org/ocp/4.11:base} |
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.
Do we really need to duplicate the default values here ? AFAICT you'll get the default values from the Makefile.
@cpmeadors can you think of a case where this Dockerfile would be used standalone ?
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.
If my memory serves me right, it's required during automatic tests.
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.
@smuda That rings a bell indeed. Let's add a comment in both places stating that changes should be propagated to the other file as well.
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.
I've added a comment about keeping them in sync.
6f286b4
to
0d423f1
Compare
@smuda: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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.
Thanks @smuda !
- Description of the problem which is fixed/What is the use case
Current build assumes the developer is a RH employee and uses images not publicly available.
Closes #268
- What I did
- How to verify it
Build with existing make targets:
Build with public images:
- Description for the changelog
Added support for overriding images in Makefile.