LinuxGpuBuildImage Class
A CodeBuild GPU image running Linux.
This class has public constants that represent the most popular GPU images from AWS Deep Learning Containers.
Example
ts
new codebuild.Project(this, 'Project', {
environment: {
buildImage: codebuild.LinuxGpuBuildImage.DLC_TENSORFLOW_2_1_0_INFERENCE,
},
// ...
})
Properties
defaultComputeTypeComputeTypedefault_compute_typeComputeTypedefaultComputeTypeComputeTypeDefaultComputeTypeComputeTypeDefaultComputeTypeComputeTyperequired#The default `ComputeType` to use with this image, if one was not specified in `BuildEnvironment#computeType` explicitly.
DLC_MXNET_1_4_1IBuildImagedlc_mxnet_1_4_1IBuildImageDLC_MXNET_1_4_1IBuildImageDLC_MXNET_1_4_1IBuildImageDLC_MXNET_1_4_1IBuildImagerequiredstatic#MXNet 1.4.1 GPU image from AWS Deep Learning Containers.
DLC_MXNET_1_6_0IBuildImagedlc_mxnet_1_6_0IBuildImageDLC_MXNET_1_6_0IBuildImageDLC_MXNET_1_6_0IBuildImageDLC_MXNET_1_6_0IBuildImagerequiredstatic#MXNet 1.6.0 GPU image from AWS Deep Learning Containers.
DLC_PYTORCH_1_2_0IBuildImagedlc_pytorch_1_2_0IBuildImageDLC_PYTORCH_1_2_0IBuildImageDLC_PYTORCH_1_2_0IBuildImageDLC_PYTORCH_1_2_0IBuildImagerequiredstatic#PyTorch 1.2.0 GPU image from AWS Deep Learning Containers.
DLC_PYTORCH_1_3_1IBuildImagedlc_pytorch_1_3_1IBuildImageDLC_PYTORCH_1_3_1IBuildImageDLC_PYTORCH_1_3_1IBuildImageDLC_PYTORCH_1_3_1IBuildImagerequiredstatic#PyTorch 1.3.1 GPU image from AWS Deep Learning Containers.
DLC_PYTORCH_1_4_0_INFERENCEIBuildImagedlc_pytorch_1_4_0_inferenceIBuildImageDLC_PYTORCH_1_4_0_INFERENCEIBuildImageDLC_PYTORCH_1_4_0_INFERENCEIBuildImageDLC_PYTORCH_1_4_0_INFERENCEIBuildImagerequiredstatic#PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers.
DLC_PYTORCH_1_4_0_TRAININGIBuildImagedlc_pytorch_1_4_0_trainingIBuildImageDLC_PYTORCH_1_4_0_TRAININGIBuildImageDLC_PYTORCH_1_4_0_TRAININGIBuildImageDLC_PYTORCH_1_4_0_TRAININGIBuildImagerequiredstatic#PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers.
DLC_PYTORCH_1_5_0_INFERENCEIBuildImagedlc_pytorch_1_5_0_inferenceIBuildImageDLC_PYTORCH_1_5_0_INFERENCEIBuildImageDLC_PYTORCH_1_5_0_INFERENCEIBuildImageDLC_PYTORCH_1_5_0_INFERENCEIBuildImagerequiredstatic#PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers.
DLC_PYTORCH_1_5_0_TRAININGIBuildImagedlc_pytorch_1_5_0_trainingIBuildImageDLC_PYTORCH_1_5_0_TRAININGIBuildImageDLC_PYTORCH_1_5_0_TRAININGIBuildImageDLC_PYTORCH_1_5_0_TRAININGIBuildImagerequiredstatic#PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers.
DLC_TENSORFLOW_1_14_0IBuildImagedlc_tensorflow_1_14_0IBuildImageDLC_TENSORFLOW_1_14_0IBuildImageDLC_TENSORFLOW_1_14_0IBuildImageDLC_TENSORFLOW_1_14_0IBuildImagerequiredstatic#Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers.
DLC_TENSORFLOW_1_15_0IBuildImagedlc_tensorflow_1_15_0IBuildImageDLC_TENSORFLOW_1_15_0IBuildImageDLC_TENSORFLOW_1_15_0IBuildImageDLC_TENSORFLOW_1_15_0IBuildImagerequiredstatic#Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers.
DLC_TENSORFLOW_1_15_2_INFERENCEIBuildImagedlc_tensorflow_1_15_2_inferenceIBuildImageDLC_TENSORFLOW_1_15_2_INFERENCEIBuildImageDLC_TENSORFLOW_1_15_2_INFERENCEIBuildImageDLC_TENSORFLOW_1_15_2_INFERENCEIBuildImagerequiredstatic#Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers.
DLC_TENSORFLOW_1_15_2_TRAININGIBuildImagedlc_tensorflow_1_15_2_trainingIBuildImageDLC_TENSORFLOW_1_15_2_TRAININGIBuildImageDLC_TENSORFLOW_1_15_2_TRAININGIBuildImageDLC_TENSORFLOW_1_15_2_TRAININGIBuildImagerequiredstatic#Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers.
DLC_TENSORFLOW_2_0_0IBuildImagedlc_tensorflow_2_0_0IBuildImageDLC_TENSORFLOW_2_0_0IBuildImageDLC_TENSORFLOW_2_0_0IBuildImageDLC_TENSORFLOW_2_0_0IBuildImagerequiredstatic#Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers.
DLC_TENSORFLOW_2_0_1IBuildImagedlc_tensorflow_2_0_1IBuildImageDLC_TENSORFLOW_2_0_1IBuildImageDLC_TENSORFLOW_2_0_1IBuildImageDLC_TENSORFLOW_2_0_1IBuildImagerequiredstatic#Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers.
DLC_TENSORFLOW_2_1_0_INFERENCEIBuildImagedlc_tensorflow_2_1_0_inferenceIBuildImageDLC_TENSORFLOW_2_1_0_INFERENCEIBuildImageDLC_TENSORFLOW_2_1_0_INFERENCEIBuildImageDLC_TENSORFLOW_2_1_0_INFERENCEIBuildImagerequiredstatic#Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers.
DLC_TENSORFLOW_2_1_0_TRAININGIBuildImagedlc_tensorflow_2_1_0_trainingIBuildImageDLC_TENSORFLOW_2_1_0_TRAININGIBuildImageDLC_TENSORFLOW_2_1_0_TRAININGIBuildImageDLC_TENSORFLOW_2_1_0_TRAININGIBuildImagerequiredstatic#Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers.
DLC_TENSORFLOW_2_2_0_TRAININGIBuildImagedlc_tensorflow_2_2_0_trainingIBuildImageDLC_TENSORFLOW_2_2_0_TRAININGIBuildImageDLC_TENSORFLOW_2_2_0_TRAININGIBuildImageDLC_TENSORFLOW_2_2_0_TRAININGIBuildImagerequiredstatic#Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers.
The Docker image identifier that the build environment uses.
imagePullPrincipalTypeImagePullPrincipalTypeimage_pull_principal_typeImagePullPrincipalTypeimagePullPrincipalTypeImagePullPrincipalTypeImagePullPrincipalTypeImagePullPrincipalTypeImagePullPrincipalTypeImagePullPrincipalType#The type of principal that CodeBuild will use to pull this build Docker image.
The type of build environment.
Methods
awsDeepLearningContainersImage(repositoryName: string, tag: string, account?: string): IBuildImage@staticmethod def aws_deep_learning_containers_image(repository_name: str, tag: str, account: typing.Optional[str] = None) -> IBuildImagepublic static IBuildImage awsDeepLearningContainersImage(String repositoryName, String tag, String account)public static IBuildImage AwsDeepLearningContainersImage(string repositoryName, string tag, string? account = null)func AwsDeepLearningContainersImage(RepositoryName *string, Tag *string, Account *string) IBuildImagestatic#Returns a Linux GPU build image from AWS Deep Learning Containers.
3 parameters
Parameters
repositoryNamerepository_namerepositoryNamerepositoryNameRepositoryName— the name of the repository, for example "pytorch-inference".tagtagtagtagTag— the tag of the image, for example "1.5.0-gpu-py36-cu101-ubuntu16.04".accountaccountaccountaccountAccount— the AWS account ID where the DLC repository for this region is hosted in.
bind(scope: Construct, project: IProject, _options: BuildImageBindOptions): BuildImageConfigdef bind(self, scope: Construct, project: IProject, _options: BuildImageBindOptions) -> BuildImageConfigpublic BuildImageConfig bind(Construct scope, IProject project, BuildImageBindOptions _options)public BuildImageConfig Bind(Construct scope, IProject project, BuildImageBindOptions _options)func Bind(Scope Construct, Project IProject, _options BuildImageBindOptions) BuildImageConfig#Function that allows the build image access to the construct tree.
fromEcrRepository(repository: IRepository, tag?: string): IBuildImage@staticmethod def from_ecr_repository(repository: IRepository, tag: typing.Optional[str] = None) -> IBuildImagepublic static IBuildImage fromEcrRepository(IRepository repository, String tag)public static IBuildImage FromEcrRepository(IRepository repository, string? tag = null)func FromEcrRepository(Repository IRepository, Tag *string) IBuildImagestatic#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.
2 parameters
Parameters
repositoryrepositoryrepositoryrepositoryRepository— The ECR repository.tagtagtagtagTag— Image tag (default "latest").
runScriptBuildspec(entrypoint: string): BuildSpecdef run_script_buildspec(self, entrypoint: str) -> BuildSpecpublic BuildSpec runScriptBuildspec(String entrypoint)public BuildSpec RunScriptBuildspec(string entrypoint)func RunScriptBuildspec(Entrypoint *string) BuildSpec#Make a buildspec to run the indicated script.
validate(buildEnvironment: BuildEnvironment): string[]def validate(self, build_environment: BuildEnvironment) -> typing.List[str]public List<String> validate(BuildEnvironment buildEnvironment)public string[] Validate(BuildEnvironment buildEnvironment)func Validate(BuildEnvironment BuildEnvironment) *[]*string#Allows the image a chance to validate whether the passed configuration is correct.