-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Reuse devfile runtimes as LS sidecars to minimize the number of images required in CRW 2 #14637
Comments
@l0rd do you have in mind which team / individual this issue should be assigned to ? |
I don't think forcing our users to run custom images for plugins is the way to go: it's a step back to the world we had in Che 6. |
Or if we're going down that rabbit-hole, why not go all the way and run the tooling plugins inside the dev-machine image? We would get rid of all those pesky cross-container problems ("cannot open file", etc.). We'd have the same model as Gitpod or VS Code Remote Extensions. |
I am ok with that as far as it doesn't require the users to "patch" their stacks to run our stuff. Hence I think that it should be optional: even if the plugin meta.yaml specifies a sidecar image users may override that in the devfile. Something like: components:
- alias: maven
type: dockerimage
image: eclipe/maven-jdk8:latest
- type: chePlugin
id: redhat/java/latest
runInComponent: maven |
@ibuziuk I think that we still need to figure out how to implement that. There are 3 options:
components:
- type: chePlugin
id: redhat/java/latest
spec:
containers:
image: eclipe/maven-jdk8:latest
name: vscode-java
components:
- alias: maven
type: dockerimage
image: eclipe/maven-jdk8:latest
- type: chePlugin
id: redhat/java/latest
runInComponent: maven I think we can eventually iterate over these 3 options: first we only update the image in the devfile, then we allow users to specify a plugin image and finally we allow users to specify a component that will "host" the plugin. |
cc @davidfestal |
WIP is happening in #14797 |
List of images in devfile reg:
List of images in plugin reg:
|
I think we're as done here as we're likely to get. |
Is your enhancement related to a problem? Please describe.
Currently the sample stacks base images are unrelated to the corresponding language servers sidecars (i.e. java8 plugin and the maven jdk 8 stack).
As a consequence users can experience some inconsistencies as mentioned by #14545
Describe the solution you'd like
When #13387 will be addressed we will be able to use the same images for some stacks and the sidecar. The images may match or be based on (one layer on top of) the language server sidecar image.
That solution only solves the problem of the samples stacks provided with Che. To help users address the same problem for their custom stacks we should document how to customize the sidecar image (in a customer plugin registry) to match the language version of their runtime.
The text was updated successfully, but these errors were encountered: