-
Notifications
You must be signed in to change notification settings - Fork 114
chore(release scripts): update release scripts due to changes in sidecar lifecycle #483
Conversation
…car lifecycle Signed-off-by: Vitaliy Gulyy <[email protected]>
Hello, I'm not sure to understand why digest stuff is removed ? |
Signed-off-by: Vitaliy Gulyy <[email protected]>
Signed-off-by: Vitaliy Gulyy <[email protected]>
I cannot say the stuff was removed. Instead of keeping all digests in one file we can get them from the sidecar dockerfiles. che-devfile-registry/dockerfiles/java8-maven/Dockerfile Lines 9 to 13 in b27df2e
Line 12 contains digest of the necessary tag ( line 10 ). Short sha1 we use only to tag che-* sidecar images. |
Signed-off-by: Vitaliy Gulyy <[email protected]>
Signed-off-by: Vitaliy Gulyy <[email protected]>
@vitaliy-guliy but digest you're showing are the one of the parent, not the one of the current devfile images |
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.
AFAIK we should still replace tag by digest if --use-digests option is provoded
…evfiles Signed-off-by: Vitaliy Gulyy <[email protected]>
Corresponding code reverted. I built the registry with
|
ARG USE_DIGESTS=false | ||
ENV USE_DIGESTS=${USE_DIGESTS} |
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.
hello, any reason to remove it ?
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.
It looks like redundant, as it works fine only with ARG USE_DIGESTS=false
( like in the Dockerfile
)
Do we really need it 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.
because we no longer build the devfile registry with hardcoded digests. Instead, the registry reads the digests at run time from the operator's csv env var. See https://issues.redhat.com/browse/CRW-1157
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.
we should also remove ARG USE_DIGESTS=false
since we don't use it anymore .... right?
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.
https://issues.redhat.com/browse/CRW-1157 should have been closed only if upstream was cleaned up 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.
Also it seems code is still there downstream https://github.com/search?q=org%3Aredhat-developer+USE_DIGESTS&type=code
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.
good catch, redhat-developer/devspaces-images#123 for the fix
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.
https://issues.redhat.com/browse/CRW-1157 should have been closed only if upstream was cleaned up as well
Perhaps... or we should have had a matching GH issue for upstream :D Either way, you're right, the followup cleanup work wasn't done at that time.
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
But that's the exact opposite of using the env vars from the operator as per https://issues.redhat.com/browse/CRW-1157. Why go backwards to make builds more difficult? |
@nickboldt all your comments are related to my last commit, in which I reverted the code, that replaces tags on digests when @benoitf could you give some comments here and confirm that we need this functionality? |
I'm happy to remove any stuff to rhel.Dockerfile to make it more compliant to Dockerfile |
We can do it within following updates. |
let's remove this option as it's only in rhel.Dockerfile and downstream is not using it anymore. |
For final cleanup in downstream: redhat-developer/devspaces-images#123 |
Signed-off-by: Vitaliy Gulyy <[email protected]>
Signed-off-by: Vitaliy Gulyy [email protected]
What does this PR do?
Updates the release scripts.
Gives up using
base_images
file with list of sidecar images. To check the sidecar Dockerfiles, directorydockerfiles
is used.Screenshot/screencast of this PR
What issues does this PR fix or reference?
eclipse-che/che#20603
a part of eclipse-che/che#19695
How to test this PR?
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.