Adding a command section to a devfile
Specify the commands you want to run in your workspace.
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
-
composite
Sample commandcommands: - id: build exec: component: mysql commandLine: mvn clean workingDir: /projects/spring-petclinic
-