-
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
Can't modify CHE_PROJECTS_ROOT env value through devfile #17260
Comments
@mshaposhnik Do you happen to remember if we're able to change projects root from devfile? |
There is |
In devfile 2.0 we will be using |
Thanks for the replies everyone. |
@ecralx There is you could try to configure via CR patch yaml(customCheProperties field if I'm not mistaken) but I'm not sure it's going to fully work. |
@sleshchenko Configuring via CR patch yaml (server > customCheProperties > CHE_WORKSPACE_PROJECTS_STORAGE) works great ! For my current usage (playing around with Che) it is enough but it would be great if we could change it's value through the devfile ! Thanks for your help. EDIT: After a few tests, it appears that, even though CHE_PROJECTS_ROOT is the one set in CHE_WORKSPACE_PROJECTS_STORAGE (/home/user for example), it still creates a .theia folder in /projects and it's in fact the default directory that opens up when launching the workspace. I have to open up the right directory from the File menu to access my project (which opens up in a new tab). As I'm using the /projects folder (in my custom docker images) for other purposes, it's kind of annoying, but it still works so it's not that problematic. |
@ecralx from what I can see in code and after consulting with @azatsarynnyy I can say that even if you |
@ecralx should be fixed with the next build of che-theia (nightly/next) |
The problem seems to be resolved with the new che-theia build ! Thanks everyone 👍 |
Thank you @ecralx for your question/request! |
Describe the bug
Che version
ECLIPSE CHE 7.15.0-SNAPSHOT
Steps to reproduce
Create a workspace with a devfile resembling this:
Expected behavior
Running through the runtime terminal
echo $CHE_PROJECTS_ROOT
should print/home/user
and not/projects
.Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)docker version
kubectl version
Screenshots
Installation method
che-operator-cr-patch-yaml.yml
content:I made those changes as I'm using custom docker images. I don't think that it can be the source of the problem as I'm having the same issue on my custom images also.
Environment
Eclipse Che Logs
Additional context
Sorry if the expected behavior I described wasn't the right one. It's what I understood from this section of the docs
The text was updated successfully, but these errors were encountered: