CodeBuildRunnerImageBuilderProps Struct
Initializer
import { CodeBuildRunnerImageBuilderProps } from '@cloudsnorkel/cdk-github-runners'
const codeBuildRunnerImageBuilderProps: CodeBuildRunnerImageBuilderProps = { ... }import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.CodeBuildRunnerImageBuilderProps(
build_image: IBuildImage = None,
compute_type: ComputeType = None,
timeout: Duration = None
)import com.cloudsnorkel.cdk.github.runners.CodeBuildRunnerImageBuilderProps;
CodeBuildRunnerImageBuilderProps.builder()
// .buildImage(IBuildImage)
// .computeType(ComputeType)
// .timeout(Duration)
.build();using CloudSnorkel;
new CodeBuildRunnerImageBuilderProps {
IBuildImage BuildImage = null,
ComputeType ComputeType = null,
Duration Timeout = null
};import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
&cloudsnorkelcdkgithubrunners.CodeBuildRunnerImageBuilderProps {
BuildImage: github.com/aws/aws-cdk-go/awscdk/v2.aws_codebuild.IBuildImage,
ComputeType: github.com/aws/aws-cdk-go/awscdk/v2.aws_codebuild.ComputeType,
Timeout: github.com/aws/aws-cdk-go/awscdk/v2.Duration,
}Properties
buildImagebuild_imagebuildImageBuildImageBuildImage
buildImage?: IBuildImage
build_image?: IBuildImage
buildImage?: IBuildImage
BuildImage?: IBuildImage
BuildImage?: IBuildImage
Build image to use in CodeBuild.
This is the image that's going to run the code that builds the runner image.
The only action taken in CodeBuild is running docker build. You would therefore not need to change this setting often.
Default: Amazon Linux 2023
computeTypecompute_typecomputeTypeComputeTypeComputeType
computeType?: ComputeType
compute_type?: ComputeType
computeType?: ComputeType
ComputeType?: ComputeType
ComputeType?: ComputeType
The type of compute to use for this build. See the ComputeType enum for the possible values.
The compute type determines CPU, memory, and disk space:
- SMALL: 2 vCPU, 3 GB RAM, 64 GB disk
- MEDIUM: 4 vCPU, 7 GB RAM, 128 GB disk
- LARGE: 8 vCPU, 15 GB RAM, 128 GB disk
- X2_LARGE: 72 vCPU, 145 GB RAM, 256 GB disk (Linux) or 824 GB disk (Windows)
Use a larger compute type when you need more disk space for building larger Docker images.
For more details, see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
Default: ComputeType#SMALL
timeouttimeouttimeoutTimeoutTimeout
timeout?: Duration
timeout?: Duration
timeout?: Duration
Timeout?: Duration
Timeout?: Duration
The number of minutes after which AWS CodeBuild stops the build if it's not complete.
For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Default: Duration.hours(1)