-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Devfile format to generate a workspace #11549
Comments
Related to #4362 |
Some thoughts:
|
Before we start use-case grouping I would like to have an agreement on some technical aspects. I would say all stories can be divided into such categories.
Next, we have two ways to have a working workspace from Devfile.
From what I see, I think the second solution is better, especially for the most interesting case when Devfile is under vcs. My proposal is to add new optional entry to workspace configuration.
Then on workspace start, we will have some DevFile Broker(dependent on type) that will play alongside with our ChePlugin broker to get effective workspace configuration.
|
devfile=description of your workspace. How are you going to start the workspace if you haven't read the devfile yet?
Ok but keep in mind that plugins list is defined in the devfile too
When a git repo is specified we should clone first (who: the devfile broker, where: in the /projects volume, how many times: just one I hope :-) ) and start the workspace (editor + plugins) as a second step.
I am not sure I get your question. The scenario for generating the devfile is out of scope right? |
@skabashnyuk @slemeur @l0rd I believe it's a good time to revise this epic and close it, maybe create another one for some improvements since every issue linked here is fixed or closed by che-bot because of inactivity for 180 days. |
Goal
Today we have two kind of recipes to bootstrap a cloud developer workspace and make it portable: Chefile and Factories.
Over the last few month, we've been also iterating on the definition of a
devfile
format which defines the different tools needed to develop a container based application. That work has been initiated along with the requirements of Workspace.Next. You can find the defined format here: https://github.com/l0rd/devfile/The goal of this epic is to support the
devfile
format in Eclipse Che on all the different ways we have to create/generate a workspace.User Stories
With the following requirements:
github.com/che-samples/spring-petclinic
devfile
hosted under the repositoryUser Stories:
che.host/f?repo_url
devfile
Not in scope for now:
devfile
based on an existing workspacedevfile
and be guided to select the tools he needs to create the properly tooled workspacedevfiles
Sub-Tasks
A developer can generate a workspace by just calling a url:
che.host/f?repo_url
A developer should be able to get a workspace from a repository where there is a
devfile
. Today a user is able to get a workspace by giving the url of the repository to the factory engine. It should be able to understand if the repository is having adevfile
and if it has, use it to create the properly tooled workspace.A developer can create a workspace by providing the url to the repository
We have different ways to create a new workspace from the dashboard. The user should be able to create a workspace by providing the URL to a repository. Che will be able to create the workspace from a project's
devfile
hosted in the repository.devfile
, thedevfile
should be used to configure the workspaces.A developer can create a workspace by importing the
devfile
A developer should be able to provide the content of a
devfile
or import adevfile
to create a workspace.devfile
either by uploading or copy/pasting the content of the file.A developer can generate a workspace by sending a devfile to a rest API
A developer should be able to send to a restAPI:
An get as a result a workspace created and the url to access it.
Phase 1
Phase 2
.devfile.yaml
/devfile.yaml
file Support workspace creating from repository if it contains.devfile.yaml
/devfile.yaml
file #12675Add more flexibility into devfile project source - checkout branch, commit ID etc #12775
Support resolving referenced files when building a factory from a link to raw content of the devfile #12798
The text was updated successfully, but these errors were encountered: