Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create an Eclipse Che7 Workspace through devfile

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to create an Eclipse Che7 workspace through devfile. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Import a project using devfile

The program stack is defined as devfile. This gives users more flexibility in defining the projects, IDE, commands, tools, and application runtimes required in the workspace.

In Che 6, you use Dockerfile to define the stack. In Che 7, use devfile.yaml instead. Minimum devfile the following is the minimum required in the devfile.yaml file:

ApiVersion

Metadata name

Project name and source

ApiVersion: 1.0.0metadata: name: che-in-che-outprojects:-name: che source: type: git location: 'https://github.com/eclipse/che.git'

For the complete devfile sample file, see Eclipse Che in Che devfile.yaml.

To create a workspace from devfile, create a workspace from devfile:

Commit the devfile.yaml file to the root directory of the Git repository.

When the repository contains a devfile.yaml file, point the running instance of Che 7 to the project. Then, the Che 7 instance uses the discovered devfile.yaml file through / f? Url = API build the workspace.

For example, when using Che in Minishift: http:// che-che. .nip.io / f? Url = https://github.com/eclipse/che.

Or, point to a plain text file: http://che-che..nip.io/f?url=https://gist.githubusercontent.com/nickboldt/9551284c2c779a93ccf16bc801416205/raw/7ad1e949880d7f8ed30360e74bb9f8426450db05/devfile.yaml.

Alternatively, use chectl to reference the local devfile. For example, create a workspace for creating a Che project:

Deploy Che to Minishift (or other clusters).

Extract the devfile and run the chectl command to start a workspace called che-in-che from devfile in the Minishift che-che instance.

$wget https://raw.githubusercontent.com/eclipse/che/master/devfile.yaml-o / tmp/devfile.yaml$. / chectl workspace:start-f / tmp/devfile.yaml-n che-che ✔ Retrieving Che Server URL... http://che-che.`your.IP.address.here`.nip.io ✔ ✔ Create workspace from Devfile / tmp/devfile.yamlWorkspace IDE URL: http://che-che.`your.IP.address.here`.nip.io/dashboard / # / ide/che/che-in-che the above is how to create an Eclipse Che7 workspace through devfile Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report