-
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
Add support for command and args in dockerimage tool of devfile #12761
Conversation
...rg/eclipse/che/workspace/infrastructure/docker/environment/dockerimage/EntryPointParser.java
Outdated
Show resolved
Hide resolved
.../org/eclipse/che/api/devfile/server/convert/tool/dockerimage/DockerimageToolProvisioner.java
Outdated
Show resolved
Hide resolved
...lipse/che/api/devfile/server/convert/tool/dockerimage/DockerimageToolToWorkspaceApplier.java
Show resolved
Hide resolved
...clipse/che/workspace/infrastructure/docker/environment/dockerimage/EntryPointParserTest.java
Outdated
Show resolved
Hide resolved
...lipse/che/api/devfile/server/convert/tool/dockerimage/DockerimageToolToWorkspaceApplier.java
Outdated
Show resolved
Hide resolved
wsmaster/che-core-api-devfile/src/main/resources/schema/devfile.json
Outdated
Show resolved
Hide resolved
wsmaster/che-core-api-devfile/src/main/resources/schema/devfile.json
Outdated
Show resolved
Hide resolved
759f38f
to
e22f869
Compare
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
ci-test |
1 similar comment
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
@metlos can you please add some examples of devfile in the description of this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please address my unresolved comments
.../org/eclipse/che/api/devfile/server/convert/tool/dockerimage/DockerimageToolProvisioner.java
Show resolved
Hide resolved
...re-api-devfile/src/test/resources/schema_test/dockerimage_tool/devfile_dockerimage_tool.yaml
Outdated
Show resolved
Hide resolved
Please, do not forget to update dockerimage tool type description here https://github.com/eclipse/che/tree/master/wsmaster/che-core-api-devfile#dockerimage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, one question
...a/org/eclipse/che/workspace/infrastructure/kubernetes/environment/util/EntryPointParser.java
Outdated
Show resolved
Hide resolved
...a/org/eclipse/che/workspace/infrastructure/kubernetes/environment/util/EntryPointParser.java
Outdated
Show resolved
Hide resolved
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
8b5e0ff
to
d939959
Compare
What does this PR do?
This adds support for
command
andargs
properties for dockerimage tools in the devfile. These two attributes are passed on to the workspace configuration ascontainerCommand
andcontainerArgs
.Note that this PR builds on top of #12716 (which handles the assignment of the
containerCommand and
containerArgs` to the actual k8s container) and hence I marked this PR as draft so that we don't merge it prior to #12716.An example devfile with the attributes applied so that we have an ever-running maven container in which we can run commands:
What issues does this PR fix or reference?
#12668
Release Notes
Docs PR