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: Pre-build DevWorkspace templates for devfile v2 #518
Conversation
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
build/dockerfiles/rhel.Dockerfile
Outdated
FROM registry.access.redhat.com/ubi8/nodejs-12:1-102 as dwtemplates | ||
USER 0 | ||
|
||
RUN npm install -g @eclipse-che/che-theia-devworkspace-handler |
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 think it won't work in brew environment (cc @nickboldt for downstreaming)
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.
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.
yes, CRW devfile registry is a fork. There's no sync between che devfile reg and the crw one.
Therefore you need to manually apply these changes to downstream. But you cannot just npm install
in brew unless either:
- you prebuild the bits in jenkins as a tarball then unpack them during the brew build as if doing an offline build, or
- use cachito to fetch npm dependencies https://issues.redhat.com/browse/CRW-2444
Thank you for all the fixes I still have a couple of questions:
|
I tested but I have as links
so I suppose there is a missing / before devfiles ? |
fixed |
I think it should be done as a next iteration and in the scope of a separate issue. |
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.
looks ok to me as first step
probably it requires a change in release.sh to handle the tag replacement for latest images in DevWorkspaceTemplates but I don't know if you plan to do it now or later. But it needs to be addressed |
Release DevWorkspaceTemplates in devfile registry #20824 |
Is it ok that the content of resulted meta.yaml is in json format? |
Index file is in JSON and it's where we're adding the links The generated file is in yaml file as expected |
@benoitf I mean in devfiles/go folder i see meta.yaml and its content is in JSON:
But it's not related to this PR |
Downstream issue is https://issues.redhat.com/browse/CRW-2500 |
@svor OK that's a bug that needs to be fixed |
issue for that eclipse-che/che#20828 |
Signed-off-by: Igor Vinokur ivinokur@redhat.com
What does this PR do?
Generate DW templates at build time and put them into
/usr/local/apache2/htdocs/devfiles/v2/che-thei/
folder in the che-devfile-registry image.Screenshot/screencast of this PR
What issues does this PR fix or reference?
fixes eclipse-che/che#19718
How to test this PR?
che-devfile-registry
image.<devfile-registry URL>/devfiles/v2/che-theia/
.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.