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.txt

add

Type: String / List of String

Default: Empty

Specifies which ADD entries to add to the Dockerfile while building it.

Example:

add: [ "http://foo/bar ." ]

build_args

Type: String / List of String

Default: Empty

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

Default: Empty

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

Default: Empty

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

Default: Empty

Specifies which LABEL entries to add to the Dockerfile while building it.

Example:

label: [ component="foo" ]

run

Type: String / List of String

Default: Empty

Specifies which RUN entries to add to the Dockerfile while building it.

Example:

run: |
  echo 'Run a custom command'
  echo 'Foo' > /path/to/file.txt

type

Type: String

Specifies the type of the requirement specification.