Class DockerBuildSecret
Methods to build Docker CLI arguments for builds using secrets.
Inheritance
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() | |
DockerBuildSecret(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
DockerBuildSecret(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
FromSrc(String) | A Docker build secret from a file source. |
Constructors
DockerBuildSecret()
public DockerBuildSecret()
DockerBuildSecret(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected DockerBuildSecret(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
DockerBuildSecret(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected DockerBuildSecret(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
FromSrc(String)
A Docker build secret from a file source.
public static string FromSrc(string src)
Parameters
- src System.String
The path to the source file, relative to the build directory.
Returns
System.String
The latter half required for --secret