class LinuxGpuBuildImage
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeBuild.LinuxGpuBuildImage |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#LinuxGpuBuildImage |
![]() | software.amazon.awscdk.services.codebuild.LinuxGpuBuildImage |
![]() | aws_cdk.aws_codebuild.LinuxGpuBuildImage |
![]() | aws-cdk-lib » aws_codebuild » LinuxGpuBuildImage |
Implements
IBindable
, IBuild
A CodeBuild GPU image running Linux.
This class has public constants that represent the most popular GPU images from AWS Deep Learning Containers.
See also: https://aws.amazon.com/releasenotes/available-deep-learning-containers-images
Example
new codebuild.Project(this, 'Project', {
environment: {
buildImage: codebuild.LinuxGpuBuildImage.DLC_TENSORFLOW_2_1_0_INFERENCE,
},
// ...
})
Properties
Name | Type | Description |
---|---|---|
default | Compute | The default ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly. |
image | string | The Docker image identifier that the build environment uses. |
type | string | The type of build environment. |
image | Image | The type of principal that CodeBuild will use to pull this build Docker image. |
static DLC_MXNET_1_4_1 | IBuild | MXNet 1.4.1 GPU image from AWS Deep Learning Containers. |
static DLC_MXNET_1_6_0 | IBuild | MXNet 1.6.0 GPU image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_2_0 | IBuild | PyTorch 1.2.0 GPU image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_3_1 | IBuild | PyTorch 1.3.1 GPU image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_4_0_INFERENCE | IBuild | PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_4_0_TRAINING | IBuild | PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_5_0_INFERENCE | IBuild | PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers. |
static DLC_PYTORCH_1_5_0_TRAINING | IBuild | PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_1_14_0 | IBuild | Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_1_15_0 | IBuild | Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_1_15_2_INFERENCE | IBuild | Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_1_15_2_TRAINING | IBuild | Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_2_0_0 | IBuild | Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_2_0_1 | IBuild | Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_2_1_0_INFERENCE | IBuild | Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_2_1_0_TRAINING | IBuild | Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers. |
static DLC_TENSORFLOW_2_2_0_TRAINING | IBuild | Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers. |
defaultComputeType
Type:
Compute
The default ComputeType
to use with this image, if one was not specified in BuildEnvironment#computeType
explicitly.
imageId
Type:
string
The Docker image identifier that the build environment uses.
type
Type:
string
The type of build environment.
imagePullPrincipalType?
Type:
Image
(optional)
The type of principal that CodeBuild will use to pull this build Docker image.
static DLC_MXNET_1_4_1
Type:
IBuild
MXNet 1.4.1 GPU image from AWS Deep Learning Containers.
static DLC_MXNET_1_6_0
Type:
IBuild
MXNet 1.6.0 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_2_0
Type:
IBuild
PyTorch 1.2.0 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_3_1
Type:
IBuild
PyTorch 1.3.1 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_4_0_INFERENCE
Type:
IBuild
PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_4_0_TRAINING
Type:
IBuild
PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_5_0_INFERENCE
Type:
IBuild
PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_5_0_TRAINING
Type:
IBuild
PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_14_0
Type:
IBuild
Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_0
Type:
IBuild
Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_2_INFERENCE
Type:
IBuild
Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_2_TRAINING
Type:
IBuild
Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_0_0
Type:
IBuild
Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_0_1
Type:
IBuild
Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_1_0_INFERENCE
Type:
IBuild
Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_1_0_TRAINING
Type:
IBuild
Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_2_0_TRAINING
Type:
IBuild
Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers.
Methods
Name | Description |
---|---|
bind(scope, project, _options) | Function that allows the build image access to the construct tree. |
run | Make a buildspec to run the indicated script. |
validate(buildEnvironment) | Allows the image a chance to validate whether the passed configuration is correct. |
static aws | Returns a Linux GPU build image from AWS Deep Learning Containers. |
static from | Returns a GPU image running Linux from an ECR repository. |
bind(scope, project, _options)
public bind(scope: Construct, project: IProject, _options: BuildImageBindOptions): BuildImageConfig
Parameters
- scope
Construct
- project
IProject
- _options
Build
Image Bind Options
Returns
Function that allows the build image access to the construct tree.
runScriptBuildspec(entrypoint)
public runScriptBuildspec(entrypoint: string): BuildSpec
Parameters
- entrypoint
string
Returns
Make a buildspec to run the indicated script.
validate(buildEnvironment)
public validate(buildEnvironment: BuildEnvironment): string[]
Parameters
- buildEnvironment
Build
Environment
Returns
string[]
Allows the image a chance to validate whether the passed configuration is correct.
static awsDeepLearningContainersImage(repositoryName, tag, account?)
public static awsDeepLearningContainersImage(repositoryName: string, tag: string, account?: string): IBuildImage
Parameters
- repositoryName
string
— the name of the repository, for example "pytorch-inference". - tag
string
— the tag of the image, for example "1.5.0-gpu-py36-cu101-ubuntu16.04". - account
string
— the AWS account ID where the DLC repository for this region is hosted in.
Returns
Returns a Linux GPU build image from AWS Deep Learning Containers.
See also: https://aws.amazon.com/releasenotes/available-deep-learning-containers-images
static fromEcrRepository(repository, tag?)
public static fromEcrRepository(repository: IRepository, tag?: string): IBuildImage
Parameters
- repository
IRepository
— The ECR repository. - tag
string
— Image tag (default "latest").
Returns
Returns a GPU image running Linux from an ECR repository.
NOTE: if the repository is external (i.e. imported), then we won't be able to add a resource policy statement for it so CodeBuild can pull the image.
See also: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html