Authoring devfiles - Commands
Adding commands
You can use a devfile to specify commands to run in a workspace. Every command can contain a subset of actions. The actions in each subset are related to a specific component.
Prerequisites
Procedure
Add a
commands
section to a devfile that contains a list of one or more commands.For each command, define a unique value for the mandatory
id
attribute.For each command, define a mandatory kind of one of the following kinds:
exec
,apply
orcomposite
sample command
devfile.yamlcommands: - id: build exec: component: mysql commandLine: mvn clean workingDir: /projects/spring-petclinic