-
Notifications
You must be signed in to change notification settings - Fork 64
Address Che and odo different interpretations of a 2.x devfile #679
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
Comments
A few additional comments from the DWO side of things: 1. entrypoint of components of type containerWe don't override the entrypoint because containers generally need to do some setup on startup and overriding the entrypoint would break that. E.g. current Che devfiles use this entrypoint.sh, and in general something like the OpenShift guidelines is necessary. Container entrypoints can be manually overriden via 3. Components of type KubernetesCurrently, DWO also ignores |
Supports |
working on devfile/registry#85 |
closing as rotten (created > 2 years). Feel free to re-open if it's not a requirement. |
Which area this feature is related to?
/area api
The goals of this issues are:
Differences
1.
entrypoint
of components of type containerodo
always overrides the entrypoint or command of a component, Che honors the devfile component entrypoint field.2. Projects vs starterProjects
Che ignores
starterProjects
,odo
ignoresprojects
:projects
listed in a devfile.odo
prompts developers to select one of thestarterProjects
listed in a devfile.Che automatically infer
projects
if adevfile.yaml
or.devfile.yaml
is at the root of a git repository,odo
doesn't support devfiles withoutstarterProjects
.3. Components of type Kubernetes
Che extracts the container spec from a
Pod
orDeployment
and adds it in to the "workspace Pod",odo
doesn't support components of typekubernetes
.4. Getting started
No devfile, no git repo specified by the user:
No devfile but a git repo is specified by the developer:
5. Microservice application support
Che runs all services in the same pod (risk of port collision), odo runs each service on a separate pod (requires service binding).
6. Other
.devfile.yaml
support$PROJECTS_ROOT/<project-name>
, odo uses$PROJECTS_ROOT
(both should use$PROJECT_SOURCE
)Clarifications to the Devfile spec to avoid the differences
1.
entrypoint
of components of type containerTools will need to respect the entrypoint settings. If the entrypoint is not defined, use the default from the image. The containers need to be non-terminating or adding commands and args to make it non-terminating. (Provide example e.g. tail to show).
2. Projects vs starterProjects
Deprecate Projects and only use starterProjects. The devfiles in the community registry will only contain starterProjects definition, no Projects definition.
For starterProjects, if a sample contains a devfile, the tools will keep that devfile and use the devfile that is included in the sample. If a devfile does not exist in the sample, the tools will copy the original devfile that contains the starterProjects definition and use that devfile.
Proposals:
3. Components of type Kubernetes
4. Getting started
5. Microservice application support
6. Other
The text was updated successfully, but these errors were encountered: