Skip to content

Instantly share code, notes, and snippets.

@rm3l
Last active September 6, 2023 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rm3l/5691e926a4cfe37e369d93695187bdd6 to your computer and use it in GitHub Desktop.
Save rm3l/5691e926a4cfe37e369d93695187bdd6 to your computer and use it in GitHub Desktop.
commands:
- exec:
commandLine: echo exec-1 succeeding after 5s... && sleep 5 && exit 0
component: runtime
id: exec-1
- exec:
commandLine: echo from exec-2
component: runtime
id: exec-2
- exec:
commandLine: echo from exec-3
component: runtime
id: exec-3
- exec:
commandLine: echo run-1 passing after 5s... && sleep 5 && exit 0
component: runtime
id: run-1
- exec:
commandLine: echo from run-2
component: runtime
id: run-2
- exec:
commandLine: echo from run-3
component: runtime
id: run-3
- composite:
commands:
- exec-1
- exec-2
- exec-3
group:
isDefault: true
kind: build
parallel: true
id: build
- composite:
commands:
- run-1
- run-2
- run-3
group:
isDefault: true
kind: run
parallel: true
id: run
components:
- container:
args:
- -f
- /dev/null
command:
- tail
image: busybox
memoryLimit: 10Mi
mountSources: true
name: runtime
metadata:
name: my-component-with-parallel-commands
schemaVersion: 2.2.0
@rm3l
Copy link
Author

rm3l commented Mar 24, 2023

Devfile used for reproducing the following issue: redhat-developer/odo#6681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment