Docker Requirements
Specify which Docker commands should be run during setup.
Example:
setup:
- type: docker
build_args: "R_VERSION=hello_world"
run: |
echo 'Run a custom command'
echo 'Foo' > /path/to/file.txtadd
Type: String / List of String
Specifies which ADD entries to add to the Dockerfile while building it.
Example:
add: [ "http://foo/bar ." ]build_args
Type: String / List of String
Specifies which ARG entries to add to the Dockerfile while building it.
Example:
build_args: [ "R_VERSION=4.2" ]copy
Type: String / List of String
Specifies which COPY entries to add to the Dockerfile while building it.
Example:
copy: [ "resource.txt /path/to/resource.txt" ]env
Type: String / List of String
Specifies which ENV entries to add to the Dockerfile while building it. Unlike ARG, ENV entries are also accessible from inside the container.
Example:
env: [ "R_VERSION=4.2" ]label
Type: String / List of String
Specifies which LABEL entries to add to the Dockerfile while building it.
Example:
label: [ component="foo" ]resources
Type: String / List of String
::: {.callout-warning}Deprecated since 0.6.3. Removed since 0.7.0. resources in setup: {type: docker, resources: ...} was removed. Please use copy instead. ::: Specifies which COPY entries to add to the Dockerfile while building it.
Example:
resources: [ "resource.txt /path/to/resource.txt" ]run
Type: String / List of String
Specifies which RUN entries to add to the Dockerfile while building it.
Example:
run: |
echo 'Run a custom command'
echo 'Foo' > /path/to/file.txttype
Type: String
Specifies the type of the requirement specification.