Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ Enables the execution of external processes encapsulated within a containerized
| Name | Type | Required | Description |
|:--|:---:|:---:|:---|
| image | `string` | `yes` | The name of the container image to run |
| name | `string` | `no` | A [runtime expression](dsl.md#runtime-expressions), if any, used to give specific name to the container. |
| command | `string` | `no` | The command, if any, to execute on the container |
| ports | `map` | `no` | The container's port mappings, if any |
| volumes | `map` | `no` | The container's volume mappings, if any |
Expand Down
11 changes: 11 additions & 0 deletions examples/run-container-with-name.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
document:
dsl: '1.0.0-alpha5'
namespace: test
name: run-container-with-name
version: '0.1.0'
do:
- runContainer:
run:
container:
image: hello-world
name: ${ "hello-\(.workflow.document.name)-\(.task.name)-\(.workflow.id)" }
4 changes: 4 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ $defs:
type: string
title: ContainerImage
description: The name of the container image to run.
name:
type: string
title: ContainerName
description: A runtime expression, if any, used to give specific name to the container.
command:
type: string
title: ContainerCommand
Expand Down
Loading