计算 CodeBuild托管的 GitHub 操作运行器支持的图像 - Amazon CodeBuild
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

计算 CodeBuild托管的 GitHub 操作运行器支持的图像

在中配置的标签中教程:配置 CodeBuild托管的 GitHub操作运行器,您可以使用前三列中的值来覆盖您的 Amazon EC2 环境设置。 CodeBuild 提供了以下 Amazon EC2 计算映像。有关

图像 图像版本 实例大小 平台 映像标识符 定义

linux

4.0

small

medium

large

xlarge

2xlarge

gpu_small

gpu_large

Amazon Linux 2 aws/codebuild/amazonlinux2-x86_64-standard:4.0 al2/standard/4.0

linux

5.0

Amazon Linux 2023 aws/codebuild/amazonlinux2-x86_64-standard:5.0 al2/standard/5.0

arm

2.0

small

medium

large

xlarge

2xlarge

Amazon Linux 2 aws/codebuild/amazonlinux2-aarch64-standard:2.0 al2/aarch64/standard/2.0

arm

3.0

Amazon Linux 2023 aws/codebuild/amazonlinux2-aarch64-standard:3.0 al2/aarch64/standard/3.0

ubuntu

5.0

small

medium

large

xlarge

2xlarge

gpu_small

gpu_large

Ubuntu 20.04 aws/codebuild/standard:5.0 ubuntu/standard/5.0

ubuntu

6.0

Ubuntu 22.04 aws/codebuild/standard:6.0 ubuntu/standard/6.0

ubuntu

7.0

Ubuntu 22.04 aws/codebuild/standard:7.0 ubuntu/standard/7.0

windows

1.0

medium

large

Windows Server Core 2019 aws/codebuild/windows-base:2019-1.0 不适用

windows

2.0

Windows Server Core 2019 aws/codebuild/windows-base:2019-2.0 不适用

windows

3.0

Windows Server Core 2019 aws/codebuild/windows-base:2019-3.0 不适用

此外,您还可以使用以下值来覆盖您的 Lambda 环境设置。有关 CodeBuild Lambda 计算的更多信息,请参阅。在 Amazon Lambda 计算基础上运行构建 CodeBuild 支持以下 Lambda 计算映像:

环境类型 运行时版本 实例大小

linux-lambda

dotnet6

go1.21

corretto11

corretto17

corretto21

nodejs18

nodejs20

python3.11

python3.12

ruby3.2

1GB

2GB

4GB

8GB

10GB

arm-lambda

有关更多信息,请参阅构建环境计算模式和类型提供的 Docker 镜像 CodeBuild