enum DockerServerComputeType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeBuild.DockerServerComputeType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#DockerServerComputeType |
Java | software.amazon.awscdk.services.codebuild.DockerServerComputeType |
Python | aws_cdk.aws_codebuild.DockerServerComputeType |
TypeScript (source) | aws-cdk-lib » aws_codebuild » DockerServerComputeType |
Docker server compute type.
See also: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DockerServer.html
Example
declare const vpc: ec2.Vpc;
declare const mySecurityGroup: ec2.SecurityGroup;
new pipelines.CodeBuildStep('Synth', {
// ...standard ShellStep props...
commands: [
/* ... */
],
env: {
/* ... */
},
// If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
// to be the synth step's output.
primaryOutputDirectory: 'cdk.out',
// Control the name of the project
projectName: 'MyProject',
// Control parts of the BuildSpec other than the regular 'build' and 'install' commands
partialBuildSpec: codebuild.BuildSpec.fromObject({
version: '0.2',
// ...
}),
// Control the build environment
buildEnvironment: {
computeType: codebuild.ComputeType.LARGE,
privileged: true,
dockerServer: {
computeType: codebuild.DockerServerComputeType.SMALL,
securityGroups: [mySecurityGroup],
},
},
timeout: Duration.minutes(90),
fileSystemLocations: [
codebuild.FileSystemLocation.efs({
identifier: 'myidentifier2',
location: 'myclodation.mydnsroot.com:/loc',
mountPoint: '/media',
mountOptions: 'opts',
}),
],
// Control Elastic Network Interface creation
vpc: vpc,
subnetSelection: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
securityGroups: [mySecurityGroup],
// Control caching
cache: codebuild.Cache.bucket(new s3.Bucket(this, 'Cache')),
// Additional policy statements for the execution role
rolePolicyStatements: [
new iam.PolicyStatement({
/* ... */
}),
],
});
Members
| Name | Description |
|---|---|
| SMALL | BUILD_GENERAL1_SMALL. |
| MEDIUM | BUILD_GENERAL1_MEDIUM. |
| LARGE | BUILD_GENERAL1_LARGE. |
| X_LARGE | BUILD_GENERAL1_XLARGE. |
| X2_LARGE | BUILD_GENERAL1_2XLARGE. |
| ATTRIBUTE_BASED_COMPUTE | ATTRIBUTE_BASED_COMPUTE. |
| BUILD_LAMBDA_10GB | BUILD_LAMBDA_10GB. |
| BUILD_LAMBDA_1GB | BUILD_LAMBDA_1GB. |
| BUILD_LAMBDA_2GB | BUILD_LAMBDA_2GB. |
| BUILD_LAMBDA_4GB | BUILD_LAMBDA_4GB. |
| BUILD_LAMBDA_8GB | BUILD_LAMBDA_8GB. |
| CUSTOM_INSTANCE_TYPE | CUSTOM_INSTANCE_TYPE. |
SMALL
BUILD_GENERAL1_SMALL.
MEDIUM
BUILD_GENERAL1_MEDIUM.
LARGE
BUILD_GENERAL1_LARGE.
X_LARGE
BUILD_GENERAL1_XLARGE.
X2_LARGE
BUILD_GENERAL1_2XLARGE.
ATTRIBUTE_BASED_COMPUTE
ATTRIBUTE_BASED_COMPUTE.
BUILD_LAMBDA_10GB
BUILD_LAMBDA_10GB.
BUILD_LAMBDA_1GB
BUILD_LAMBDA_1GB.
BUILD_LAMBDA_2GB
BUILD_LAMBDA_2GB.
BUILD_LAMBDA_4GB
BUILD_LAMBDA_4GB.
BUILD_LAMBDA_8GB
BUILD_LAMBDA_8GB.
CUSTOM_INSTANCE_TYPE
CUSTOM_INSTANCE_TYPE.

.NET
Go
Java
Python
TypeScript (