Skip to content
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

multi-root workspaces should be default when using Dev Workspaces / devfile v2 #19191

Closed
benoitf opened this issue Mar 3, 2021 · 1 comment
Closed
Assignees
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/task Internal things, technical debt, and to-do tasks to be performed.

Comments

@benoitf
Copy link
Contributor

benoitf commented Mar 3, 2021

Is your task related to a problem? Please describe.

multi-root is currently optional in Eclipse Che and will soon be a default.
But for DevWorkspaces it should be enabled now by default

Describe the solution you'd like

Do not need to specify attribute in devfile for devfilev2 to enable multi-root. It should be the only choice available.

Describe alternatives you've considered

N/A

Additional context

N/A

@benoitf benoitf added kind/task Internal things, technical debt, and to-do tasks to be performed. area/editor/theia Issues related to the che-theia IDE of Che labels Mar 3, 2021
@azatsarynnyy
Copy link
Member

@RomanNikitenko below are some useful notes for this issue ⬇️

To detect if we're running a DevWorkspace, check the DEVWORKSPACE_NAME environment variable, e.g. process.env['DEVWORKSPACE_NAME'].

To start a workspace with the DevWorkspace engine

  1. Start your local cluster, e.g. minikube start --memory 8192 --disk-size 50g --driver virtualbox
  2. Start Che with the dev-workspace engine: chectl server:deploy --platform=minikube --workspace-engine=dev-workspace
  3. grab https://raw.githubusercontent.com/devfile/devworkspace-operator/main/samples/flattened_theia-next.yaml and save it a local file on you machine.
  4. Start a DevWorkspace:
kubectl create ns my-dev-workspace
kubectl apply -f flattened_theia-next.yaml -n my-dev-workspace
kubectl get dw --all-namespaces

The latest command should print you a Che-Theia URL to follow.
Note, it requires some time to start a workspace. So, if there's no URL - just wait several seconds and repeat the last command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

No branches or pull requests

3 participants