This section describes how to convert a Che 6 workspace to a Che 7 devfile. The result is a basic Che 7 devfile that can be used for further workspace creation.

Prerequisites
Procedure

To convert a Che 6 workspace to a Che 7 devfile:

  1. Open an old Che 6 configuration file to identify which Che 6 stack is used in the workspace. Below, there is a detailed guide for [accessing-che-6-workspace-configuration_{context}].

  2. Create a new workspace from the Che 7 devfile that corresponds to the Che 6 stack.

    Table 1. Che 7 devfile corresponding to the respective Che 6 stacks.
    Che 6 stacks Che 7 devfile

    Apache Camel based projects,
    Apache Camel based projects on Che 7

    Apache Camel based on Spring Boot

    .NET,
    .NET Core with Theia IDE

    .NET Core

    Go,
    CentOS Go,
    Go with Theia IDE

    Go

    Java Gradle

    Java Gradle

    Blank,
    Java,
    Java-MySQL,
    Eclipse Che,
    Java CentOS

    Java Maven

    Node,
    CentOS nodejs

    NodeJS Express Web Application

    Python,
    Python with Theia IDE

    Python

    Eclipse Vert.x

    Java Vert.x

    PHP

    PHP Simple

    Spring Boot

    Java Spring Boot

    1. By default, the example project is added to the workspace. To remove the default project, click the Remove button:

      remove default project
    2. To import a custom project that was used in Che 6 workspace, click the Add or Import Project and select Git or GitHub option:

      add custom project
    3. Various commands can be added to devfiles of imported projects, for example, run, build, and test. The commands are then accessible from the IDE when a workspace is started. Custom commands and other devfile components can be added in the Devfile configuration.

    4. Click the Create & Proceed Editing button.

      create and edit

      Select the Devfile tab to update the configuration. Machine servers in Che 6 workspaces can be specified as components endpoints in a Devfile and Che 6 installers as components of type chePlugin. See the Devfile specification for the detailed information about the supported properties and attributes.

      update devfile configuration
    5. Once the Devfile configuration is completed, click the Open button to start a newly created Che 7 workspace.