Chapter 9. Using the Che 7 IDE in CodeReady Workspaces


Important

CodeReady Workspaces 1.1.0 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:

  1. In the Dashboard, click Workspaces and then click Add Workspace.
  2. Select any stack from the list and click the dropdown icon next to CREATE & OPEN.
  3. Click Create & Proceed Editing.
  4. 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": []
    }
  5. 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/.
  6. 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"
          }
        }
      }
  7. To define it as the default environment, add the following content:

    "defaultEnv": "default"
    "environments": {
         "default": {...} }
  8. Click the Open button and run the Che 7-based workspace that you just created.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.