Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Runtime disponibili
È possibile specificare uno o più runtime nella sezione runtime-versions del file buildspec. Se il runtime dipende da un altro runtime, è anche possibile specificarne il runtime dipendente nel file buildspec. Se non specificate alcun runtime nel file buildspec, CodeBuild sceglie i runtime predefiniti disponibili nell'immagine utilizzata. Se specificate uno o più runtime, utilizza solo quei runtime. CodeBuild Se non viene specificato un runtime dipendente, CodeBuild tenta di scegliere il runtime dipendente automaticamente.
Nota
Se non viene specificata una versione di runtime, CodeBuild utilizza la versione predefinita. La versione predefinita può cambiare quando una versione predefinita precedente raggiunge la fine del ciclo di vita (EOL). Per evitare modifiche impreviste all'ambiente di compilazione, consigliamo di specificare una versione di runtime nel file buildspec.
Per ulteriori informazioni, consulta Specify runtime versions in the buildspec file.
Runtime delle immagini Linux
La tabella seguente contiene i runtime disponibili e le immagini Linux standard che li supportano.
| Nome runtime | Versione | Immagini |
|---|---|---|
| dotnet | 6.0 |
Standard Amazon Linux 2 x86_64 Lambda: dotnet6 Amazon Linux 2 AArch64 Lambda standard:dotnet6 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
| 8.0 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 10.0 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| golang | 1.20 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
| 1.21 |
Standard Amazon Linux 2 x86_64 Lambda: go1.21 Standard Amazon Linux 2 AArch64 Lambda: go1.21 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
|
| 1.22 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
|
| 1.23 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
|
| 1.24 |
Amazon Linux 2023 x86_64 Lambda standard: go1.24 Amazon Linux 2023 AArch64 Lambda standard:go1.24 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 1.25 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 1.26 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| java | corretto8 |
Standard Amazon Linux 2 x86_64: corretto8 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
| corretto11 |
Standard Amazon Linux 2 x86_64: corretto 11 Standard Amazon Linux 2 x86_64 Lambda: corretto11 Standard Amazon Linux 2 AArch64 Lambda: corretto11 Amazon Linux 2023 x86_64 standard: 5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| corretto 17 |
Standard Amazon Linux 2 x86_64 Lambda: corretto17 Standard Amazon Linux 2 AArch64 Lambda: corretto17 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| corretto 21 |
Standard Amazon Linux 2 x86_64 Lambda: corretto21 Standard Amazon Linux 2 AArch64 Lambda: corretto21 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| corretto 25 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| nodejs | 18 |
Standard Amazon Linux 2 x86_64 Lambda: nodejs18 Standard Amazon Linux 2 AArch64 Lambda: nodejs18 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
| 20 |
Standard Amazon Linux 2 x86_64 Lambda: nodejs20 Standard Amazon Linux 2 AArch64 Lambda: nodejs20 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
|
| 22 |
Amazon Linux 2023 x86_64 Lambda standard:nodejs22 Standard Amazon Linux 2023 AArch64 Lambda: nodejs22 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 24 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 26 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Ubuntu 22.04 standard: 7.0 Ubuntu 24.04 standard: 8.0 |
|
| php | 8.1 |
Standard Amazon Linux 2023 AArch64:3.0 |
| 8.2 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 8.3 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 8.4 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 8.5 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| python | 3.9 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
| 3.10 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 3.11 |
Amazon Linux 2 x86_64 Lambda standard: python3.11 Amazon Linux 2 AArch64 Lambda standard: python 3.11 Amazon Linux 2023 x86_64 standard: 5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 3.12 |
Amazon Linux 2 x86_64 Lambda standard: python3.12 Standard Amazon Linux 2 AArch64 Lambda: python 3.12 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 3.13 |
Amazon Linux 2023 x86_64 Lambda standard: python3.13 Amazon Linux 2023 AArch64 Lambda standard: python 3.13 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 3.14 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| ruby | 3.1 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
| 3.2 |
Amazon Linux 2 x86_64 Lambda standard: ruby3.2 Amazon Linux 2 AArch64 Lambda standard: ruby3.2 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Ubuntu 22.04:7.0 |
|
| 3.3 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 3.4 |
Amazon Linux 2023 x86_64 Lambda standard: ruby3.4 Amazon Linux 2023 AArch64 Lambda standard: ruby 3.4 Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| 4.0 |
Standard Amazon Linux 2023 x86_64:5.0 Standard Amazon Linux 2023 x86_64:6.0 Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 Standard Ubuntu 22.04:7.0 Ubuntu 24.04 standard: 8.0 |
|
| arrugginire | 1.94 |
Standard Amazon Linux 2023 AArch64:3.0 Standard Amazon Linux 2023 AArch64:4.0 |
| 1,97 |
Standard Amazon Linux 2023 x86_64:6.0 Ubuntu 24.04 standard:8.0 |
Runtime delle immagini macOS
Importante
Le immagini CodeBuild selezionate per le build Mac contengono macOS e Xcode preinstallati. Utilizzando il software Xcode, riconosci, comprendi e acconsenti al Contratto Xcode e Apple SDK. https://www.apple.com/legal/sla/docs/xcode.pdf
La tabella seguente contiene i runtime disponibili supportati da macOS.
| Nome runtime | Versione | Immagini | Note aggiuntive |
|---|---|---|---|
| bash |
3.2.57 |
macos-arm-base:15 macos-arm-base:26 |
|
| clang |
17.0.0 |
macos-arm-base:15 macos-arm-base:26 |
|
| dotnet sdk |
8.0.416 |
macos-arm-base:15 |
|
|
8.0.417 |
macos-arm-base:26 |
||
|
10.0.101 |
macos-arm-base:15 |
||
|
10.0.102 |
macos-arm-base:26 |
||
| gcc |
11.5.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
12.4.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
|
13.4.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l' |
|
|
14.3.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
| gnu |
11.5.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
12.4.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
|
13.4.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
|
14.3.0 |
macos-arm-base:15 macos-arm-base:26 |
Disponibile utilizzando l'alias |
|
| golang |
1.24.11 |
macos-arm-base:15 macos-arm-base:26 |
|
|
1.25.4 |
macos-arm-base:15 macos-arm-base:26 |
||
| java |
Corretto 8 |
macos-arm-base:15 macos-arm-base:26 |
|
|
Corretto 11 |
macos-arm-base:15 macos-arm-base:26 |
||
|
Corretto 17 |
macos-arm-base:15 macos-arm-base:26 |
||
|
Corretto 21 |
macos-arm-base:15 macos-arm-base:26 |
||
|
Corretto 25 |
macos-arm-base:15 macos-arm-base:26 |
||
| kotlin |
2.2.21 |
macos-arm-base:15 |
|
|
2.3.0 |
macos-arm-base:26 |
||
| mono |
6.14.1 |
macos-arm-base:15 macos-arm-base:26 |
|
| nodejs |
20.19.6 |
macos-arm-base:15 macos-arm-base:26 |
|
|
22.21.1 |
macos-arm-base:15 macos-arm-base:26 |
||
|
24.11.1 |
macos-arm-base:15 macos-arm-base:26 |
||
| perl |
5.34.1 |
macos-arm-base:15 macos-arm-base:26 |
|
| php |
8.2.29 |
macos-arm-base:15 |
|
|
8.2,30 |
macos-arm-base:26 |
||
|
8.3.28 |
macos-arm-base:15 |
||
|
8.3.30 |
macos-arm-base:26 |
||
|
8.4.15 |
macos-arm-base:15 |
||
|
8.4.17 |
macos-arm-base:26 |
||
|
8.5.0 |
macos-arm-base:15 |
||
|
8.5.2 |
macos-arm-base:26 |
||
| python |
3.10.19 |
macos-arm-base:15 macos-arm-base:26 |
|
|
3.11.14 |
macos-arm-base:15 macos-arm-base:26 |
||
|
3.12.12 |
macos-arm-base:15 macos-arm-base:26 |
||
|
3.13.10 |
macos-arm-base:15 macos-arm-base:26 |
||
|
3.14.1 |
macos-arm-base:15 macos-arm-base:26 |
||
| ruby |
3.2.9 |
macos-arm-base:15 macos-arm-base:26 |
|
|
3.3.10 |
macos-arm-base:15 macos-arm-base:26 |
||
|
3.4.7 |
macos-arm-base:15 macos-arm-base:26 |
||
| arrugginire |
1.91.1 |
macos-arm-base:15 |
|
|
1.92.0 |
macos-arm-base:26 |
||
| veloce |
6.2.1 |
macos-arm-base:15 |
|
|
6.2.3 |
macos-arm-base:26 |
||
| Xcode |
26.1.1 |
macos-arm-base:15 |
|
|
26.2 |
macos-arm-base:26 |
Runtime delle immagini Windows
L'immagine di base di Windows Server Core 2019 contiene i seguenti runtime.
| Nome runtime | Standard Windows Server Core 2019: versioni 1.0 | Windows Server Core 2019 standard:versioni 2.0 | Windows Server Core 2019 standard:versioni 3.0 |
|---|---|---|---|
| dotnet | 3.1 5.0 |
3.1 6.0 7.0 |
8.0 |
| dotnet sdk | 3.1 5.0 |
3.1 6.0 7.0 |
8.0 |
| golang | 1.14 | 1.18 | 1,21 1,22 1,23 |
| gradle | 6.7 | 7.6 | 8.12 |
| java | Corretto 11 | Corretto 11 Corretto 17 |
Corretto 8 Corretto 11 Corretto 17 Corretto 21 |
| esperta | 3.6 | 3.8 | 3.9 |
| nodejs | 14,15 | 16,19 | 20,18 22,13 |
| php | 7.4 | 8.1 | 8.3 8.4 |
| powershell | 7.1 | 7.2 | 7.4 |
| python | 3.8 | 3.10 | 3,10 3,11 3,12 3.13 |
| ruby | 2.7 | 3.1 | 3.2 3.3 3.4 |