Adding event bindings
Adding event bindings.
Procedure
-
Add an
events
section in the devfile, containing a list ofpreStart
andpostStart
commands.
# v2.0
---
components:
- container:
name: "copier"
image: ''
- container:
name: "maven"
image: ''
- plugin:
id: theia
Commands:
containerBuild:
reference:
composite:
- exec:
name: "copyNeededFiles"
component: "copier"
commandLine: "cp somefile"
- exec:
name: "buildAll"
component: "maven"
commandLine: "mvn ..."
- vsCodeTask:
name: "openFile"
component: "theia"
events:
preStart:
- "copyNeededFiles"
postStart:
- "buildAll"
- "openFile"
Additional resources
-
See corresponding issue.