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.
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che 'quick-starts'.
-
An existing workspace defined on this instance of Eclipse Che Creating a workspace from user dashboard.
To convert a Che 6 workspace to a Che 7 devfile:
-
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}].
-
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 7Apache Camel based on Spring Boot
.NET,
.NET Core with Theia IDE.NET Core
Go,
CentOS Go,
Go with Theia IDEGo
Java Gradle
Java Gradle
Blank,
Java,
Java-MySQL,
Eclipse Che,
Java CentOSJava Maven
Node,
CentOS nodejsNodeJS Express Web Application
Python,
Python with Theia IDEPython
Eclipse Vert.x
Java Vert.x
PHP
PHP Simple
Spring Boot
Java Spring Boot
-
By default, the example project is added to the workspace. To remove the default project, click the Remove button:
-
To import a custom project that was used in Che 6 workspace, click the Add or Import Project and select Git or GitHub option:
-
Various commands can be added to devfiles of imported projects, for example,
run,build, andtest. 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. -
Click the Create & Proceed Editing button.
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.
-
Once the Devfile configuration is completed, click the Open button to start a newly created Che 7 workspace.
-



