Skip to content

DockerBuildSecret

Methods to build Docker CLI arguments for builds using secrets.

Docker BuildKit must be enabled to use build secrets.

https://docs.docker.com/build/buildkit/

Initializers

import ros_cdk_core
ros_cdk_core.DockerBuildSecret()
Name Type Description

Static Functions

Name Description
from_src A Docker build secret from a file source.

from_src

import ros_cdk_core
ros_cdk_core.DockerBuildSecret.from_src(
  src: str
)

A Docker build secret from a file source.

srcRequired

  • Type: str

The path to the source file, relative to the build directory.