Implements IBindableBuildImage
, IBuildImage
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
Examplenew codebuild.Project(this, 'Project', {
environment: {
buildImage: codebuild.LinuxGpuBuildImage.DLC_TENSORFLOW_2_1_0_INFERENCE,
},
})
Properties Name Type Description defaultComputeType ComputeType
The default ComputeType
to use with this image, if one was not specified in BuildEnvironment#computeType
explicitly. imageId string
The Docker image identifier that the build environment uses. type string
The type of build environment. imagePullPrincipalType? ImagePullPrincipalType
The type of principal that CodeBuild will use to pull this build Docker image. static DLC_MXNET_1_4_1 IBuildImage
MXNet 1.4.1 GPU image from AWS Deep Learning Containers. static DLC_MXNET_1_6_0 IBuildImage
MXNet 1.6.0 GPU image from AWS Deep Learning Containers. static DLC_PYTORCH_1_2_0 IBuildImage
PyTorch 1.2.0 GPU image from AWS Deep Learning Containers. static DLC_PYTORCH_1_3_1 IBuildImage
PyTorch 1.3.1 GPU image from AWS Deep Learning Containers. static DLC_PYTORCH_1_4_0_INFERENCE IBuildImage
PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers. static DLC_PYTORCH_1_4_0_TRAINING IBuildImage
PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers. static DLC_PYTORCH_1_5_0_INFERENCE IBuildImage
PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers. static DLC_PYTORCH_1_5_0_TRAINING IBuildImage
PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers. static DLC_TENSORFLOW_1_14_0 IBuildImage
Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers. static DLC_TENSORFLOW_1_15_0 IBuildImage
Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers. static DLC_TENSORFLOW_1_15_2_INFERENCE IBuildImage
Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers. static DLC_TENSORFLOW_1_15_2_TRAINING IBuildImage
Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers. static DLC_TENSORFLOW_2_0_0 IBuildImage
Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers. static DLC_TENSORFLOW_2_0_1 IBuildImage
Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers. static DLC_TENSORFLOW_2_1_0_INFERENCE IBuildImage
Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers. static DLC_TENSORFLOW_2_1_0_TRAINING IBuildImage
Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers. static DLC_TENSORFLOW_2_2_0_TRAINING IBuildImage
Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers. defaultComputeType
Type: ComputeType
The default ComputeType
to use with this image, if one was not specified in BuildEnvironment#computeType
explicitly.
Type: string
The Docker image identifier that the build environment uses.
typeType: string
The type of build environment.
imagePullPrincipalType?Type: ImagePullPrincipalType
(optional)
The type of principal that CodeBuild will use to pull this build Docker image.
static DLC_MXNET_1_4_1Type: IBuildImage
MXNet 1.4.1 GPU image from AWS Deep Learning Containers.
static DLC_MXNET_1_6_0Type: IBuildImage
MXNet 1.6.0 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_2_0Type: IBuildImage
PyTorch 1.2.0 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_3_1Type: IBuildImage
PyTorch 1.3.1 GPU image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_4_0_INFERENCEType: IBuildImage
PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_4_0_TRAININGType: IBuildImage
PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_5_0_INFERENCEType: IBuildImage
PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers.
static DLC_PYTORCH_1_5_0_TRAININGType: IBuildImage
PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_14_0Type: IBuildImage
Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_0Type: IBuildImage
Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_2_INFERENCEType: IBuildImage
Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_1_15_2_TRAININGType: IBuildImage
Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_0_0Type: IBuildImage
Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_0_1Type: IBuildImage
Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_1_0_INFERENCEType: IBuildImage
Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_1_0_TRAININGType: IBuildImage
Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers.
static DLC_TENSORFLOW_2_2_0_TRAININGType: IBuildImage
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. runScriptBuildspec(entrypoint) Make a buildspec to run the indicated script. validate(buildEnvironment) Allows the image a chance to validate whether the passed configuration is correct. static awsDeepLearningContainersImage(repositoryName, tag, account?) Returns a Linux GPU build image from AWS Deep Learning Containers. static fromEcrRepository(repository, tag?) Returns a GPU image running Linux from an ECR repository. bind(scope, project, _options)public bind(scope: Construct, project: IProject, _options: BuildImageBindOptions): BuildImageConfig
Parameters
Construct
IProject
BuildImageBindOptions
Returns
Function that allows the build image access to the construct tree.
runScriptBuildspec(entrypoint)public runScriptBuildspec(entrypoint: string): BuildSpec
Parameters
string
Returns
Make a buildspec to run the indicated script.
validate(buildEnvironment)public validate(buildEnvironment: BuildEnvironment): string[]
Parameters
BuildEnvironment
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
string
â the name of the repository, for example "pytorch-inference".string
â the tag of the image, for example "1.5.0-gpu-py36-cu101-ubuntu16.04".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
IRepository
â The ECR repository.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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4