-
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
Why does che override the container entrypoint in a devfile on Red Hat Dev Spaces #22182
Comments
Hello, @Charleeboyle I have no info about version you are using, but recently the corresponding part was reworked: https://github.com/eclipse-che/che-plugin-registry/pull/1566/files So, it should be possible to start IDE on the post-start event, the entrypoint should not be overridden. |
Hi @RomanNikitenko thanks for the speedy response. Currently we are using the I wonder if our version does not include those changes in the PR |
The changes will be available within |
Is there a timeline for the 3.6 release ? |
May 17 is date of the 3.6 release if I'm not mistaken. |
This issue was resolved in version 3.6. Thank you. |
Summary
I am trying to migrate from RedHat Code Ready Workspaces (CRW) to Red Hat Dev Spaces. Our existing devfile for CRW does not work in Dev Spaces because Che is contributing many different fields to the devfile upon creation of the workspace.
The following attributes are added to the devfile:
The part causing the most confusion is this entrypoint command which is added to the container component of the devfile:
From reading the devfile.io documentation, the
command
field modifies the entrypoint command of the container created from the image, and if not specified, the entrypoint from the provided image is used.We provide a custom image for this container component, therefore when Che adds these fields into the devfile, the container does not start as intended. When this entrypoint command is removed from the devfile after the workspace is created, by editing the devfile, our container will start as intended, but then the workspace does not open.
What is the purpose of these Che contributions ? I notice that these are added to the "Empty Workspace" sample also.
Relevant information
The devfile we want to use:
We are aiming for a workspace which opens our project source, and runs the specified image in a container
ui
, exposing it on the defined endpoint.Our image entrypoint is being overridden when the workspace is created
Do we need two container components in our devfile? One which will host the workspace, and one which will run our custom image?
The text was updated successfully, but these errors were encountered: