Class DockerBuildSecret
Methods to build Docker CLI arguments for builds using secrets.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DockerBuildSecret : DeputyBase
Syntax (vb)
Public Class DockerBuildSecret Inherits DeputyBase
Remarks
Docker BuildKit must be enabled to use build secrets.
See: https://docs.docker.com/build/buildkit/
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var dockerBuildSecret = new DockerBuildSecret();
Synopsis
Constructors
| DockerBuildSecret() | Methods to build Docker CLI arguments for builds using secrets. |
Methods
| FromSrc(string) | A Docker build secret from a file source. |
Constructors
DockerBuildSecret()
Methods to build Docker CLI arguments for builds using secrets.
public DockerBuildSecret()
Remarks
Docker BuildKit must be enabled to use build secrets.
See: https://docs.docker.com/build/buildkit/
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var dockerBuildSecret = new DockerBuildSecret();
Methods
FromSrc(string)
A Docker build secret from a file source.
public static string FromSrc(string src)
Parameters
- src string
The path to the source file, relative to the build directory.
Returns
The latter half required for --secret
Remarks
Docker BuildKit must be enabled to use build secrets.
See: https://docs.docker.com/build/buildkit/
ExampleMetadata: fixture=_generated