Chapter 9. Using the Che 7 IDE in CodeReady Workspaces
CodeReady Workspaces 1.2 is based on upstream Che 6. The next version of Che, Che 7, is being worked on. To try this upcoming version of Che 7 in CodeReady Workspaces, follow the instructions in this section.
Che 7-based stacks are not included by default in CodeReady Workspaces. However, you can use a Che 7-based workspace configuration in CodeReady Workspaces. To use the Che 7-based stacks in CodeReady Workspaces, take the following steps:
- In the Dashboard, click Workspaces and then click Add Workspace.
- Select any stack from the list and click the dropdown icon next to CREATE & OPEN.
- Click Create & Proceed Editing.
Click the Config tab and replace the default configuration content with the following content:
{ "environments": {}, "projects": [], "name": "che7", "attributes": { "editor": "org.eclipse.che.editor.theia:1.0.0", "plugins": "che-machine-exec-plugin:0.0.1" }, "commands": [], "links": [] }
- To add additional Che plugins (for example to add support for a particular language), add them in the workspace configuration attributes#plugins list. For a list of available plugins, see https://github.com/eclipse/che-plugin-registry/.
To add a runtime environment (for example Java runtime environment), add the following content in the Config tab:
"environments": { "default": { "machines": { "ws/dev": { "attributes": { "memoryLimitBytes": "536870912" }, "servers": {}, "volumes": { "projects": { "path": "/projects" } }, "installers": [], "env": {} } }, "recipe": { "type": "kubernetes", "content": "kind: List\nitems:\n - \n apiVersion: v1\n kind: Pod\n metadata:\n name: ws\n spec:\n containers:\n - \n image: 'eclipse/che-dev:nightly'\n name: dev\n resources:\n limits:\n memory: 512Mi\n", "contentType": "application/x-yaml" } } }
To define it as the default environment, add the following content:
"defaultEnv": "default" "environments": { "default": {...} }
- Click the Open button and run the Che 7-based workspace that you just created.