-
Notifications
You must be signed in to change notification settings - Fork 243
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
odo run <devfile-command>
when odo dev
is running
#6568
Comments
/triage needs-information Add more details |
odo run <devfile-command>
odo run <devfile-command>
when odo dev
is running
[Grooming Call April 6, 2023]
@kadel to add about the long term vision of implementing this issue.
|
/status blocked We will wait on this issue until we have an architecture ready. |
It seems we will have to introduce flags similar to
|
I have implemented it to detect if stdin/out are a terminal. The raw mode will be set only if they are. |
/kind user-story
User Story
As an odo user, I want to be able to start commands defined in the devfile when I need to So that I can run actions defined in the devfile, like, for example, running commands that test things, or nondefault build commands that do some optional extra work.
This will allow users to follow the same workflow as in IDEs and DevSpaces where the command are usually executed only upon user request.
Acceptance Criteria
odo run
for example) that takes one argument that is the command name and executes the command defined in devfileodo run
assumes thatodo dev
is running in a separate terminal, ifodo dev
is not running (resources not present on the cluster)odo run
errors out and tells the user to runodo dev
first.exec
command and the container where the program needs to be started is not running, the command should be executed as aJob
; for podman this can be running inside a pod/container.exec
and the container is already running, it should be just executed inside the running containerapply
it just applies what it needs to :-)kubernetes
/openshift
components get created,container
component gets turned intoDeployment
isdedicatedPod: true
composite
that it performs all action based on the above rulesodo run
streams logs into the terminal and waits for the command to finish.odo run
command reflect the exit code of the last devfile command executed. If the last command wasapply
and it was successful it returns 0, if failed returns 1Links
This will enable the implementation of #6070
related to #6478 epic
/kind user-story
/priority medium
The text was updated successfully, but these errors were encountered: