Cloud Run Functions s'exécute dans un environnement composé d'une version de système d'exploitation, de packages de modules complémentaires, de langages acceptés ainsi que de la bibliothèque du framework Functions qui prend en charge et appelle votre fonction. Cet environnement est identifié par la version de langage et est appelé l'environnement d'exécution. Plusieurs langages de programmation sont disponibles : Node.js, Python, Go, Java, Ruby, PHP et .NET. Pour en savoir plus, consultez la présentation de Cloud Run Functions.
Environnements d'exécution des fonctions Cloud Run
Les environnements d'exécution sont disponibles dans plusieurs langages, avec des instructions spécifiques pour chacun d'eux :
- Environnement d'exécution Node.js
- Environnement d'exécution Python
- Environnement d'exécution Go
- Environnement d'exécution Java
- Environnement d'exécution Ruby
- Environnement d'exécution PHP
- Environnement d'exécution .NET
Calendrier de compatibilité des environnements d'exécution
Les environnements d'exécution Cloud Run Functions sont soumis au cycle de vie des environnements d'exécution Cloud Run et au calendrier d'assistance :
Node.js
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| Node.js 26 (preview) |
nodejs26 |
|
|
||
| Node.js 24 | nodejs24 |
|
|
2028-04-30 | 2028-10-31 |
| Node.js 22 | nodejs22 |
|
|
2027-04-30 | 31/10/2027 |
| Node.js 20 | nodejs20 |
|
|
2026-04-30 | 2026-10-30 |
| Node.js 18 | nodejs18 |
|
|
2025-04-30 | 2025-10-30 |
| Node.js 16 | nodejs16 | google-18-full | google-18-full/nodejs16 | 30/01/2024 | 2025-01-30 |
| Node.js 14 | nodejs14 | google-18-full | google-18-full/nodejs14 | 30/01/2024 | 2025-01-30 |
| Node.js 12 | nodejs12 | google-18-full | google-18-full/nodejs12 | 30/01/2024 | 2025-01-30 |
| Node.js 10 | nodejs10 | google-18-full | google-18-full/nodejs10 | 30/01/2024 | 2025-01-30 |
| Node.js 8 | nodejs8 | Hors service | Hors service | 2020-06-05 | Févr. 2021 |
| Node.js 6 | nodejs6 | Hors service | Hors service | 2019-04-17 | Août 2020 |
Python
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| Python 3.15 (preview) |
python315 |
|
|
||
| Python 3.14 | python314 |
|
|
2030-10-10 | 2031-04-10 |
| Python 3.13 | python313 |
|
|
10/10/2029 | 10/04/2030 |
| Python 3.12 | python312 |
|
|
2028-10-02 | 2029-04-02 |
| Python 3.11 | python311 |
|
|
2027-10-24 | 2028-04-24 |
| Python 3.10 | python310 |
|
|
2026-10-04 | 2027-04-04 |
| Python 3.9 | python39 | google-18-full | google-18-full/python39 | 2025-10-05 | 2026-04-05 |
| Python 3.8 | python38 | google-18-full | google-18-full/python38 | 2024-10-14 | 2025-10-14 |
| Python 3.7 | python37 | google-18-full | google-18-full/python37 | 2024-01-30 | 2025-01-30 |
Go
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| Go 1.27 | go127 |
|
|
Août/septembre 2027 | Février/mars 2028 |
| Go 1.26 | go126 |
|
|
Février/mars 2027 | Août/septembre 2027 |
| Go 1.25 | go125 |
|
|
2026-10-01 | 2027-04-01 |
| Go 1.24 | go124 |
|
|
2026-09-02 | 2027-03-02 |
| Go 1.23 |
go123 |
|
|
21/02/2026 | 21/08/2026 |
| Go 1.22 | go122 |
|
|
28/01/2026 | 28/07/2026 |
| Go 1.21 | go121 |
|
|
03/09/2025 | 03/03/2026 |
| Go 1.20 | go120 |
|
|
2024-05-01 | 2025-05-01 |
| Go 1.19 | go119 |
|
|
2024-04-30 | 2025-01-30 |
| Go 1.18 | go118 |
|
|
2024-01-30 | 2025-01-30 |
| Go 1.16 | go116 | google-18-full | google-18-full/go116 | 2024-01-30 | 2025-01-30 |
| Go 1.13 | go113 | google-18-full | google-18-full/go113 | 2024-01-30 | 2025-01-30 |
| Go 1.11 | go111 | Hors service | Hors service | 2020-08-05 | Févr. 2021 |
Java
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| Java 25 | java25 |
|
|
Octobre 2031 | |
| Java 21 | java21 |
|
|
Septembre 2031 | |
| Java 17 | java17 |
|
|
Octobre 2027 | |
| Java 11 | java11 | google-18-full | google-18-full/java11 | 2024-10-31 | 2025-10-31 |
Ruby
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| Ruby 4.0 | ruby40 | google-24-full (par défaut) | google-24-full/ruby40 | 2029-03-31 | 2029-09-30 |
| Ruby 3.4 | ruby34 |
|
|
2028-03-31 | 30/09/2028 |
| Ruby 3.3 | ruby33 |
|
|
2027-03-31 | 2027-09-30 |
| Ruby 3.2 | ruby32 |
|
|
2026-03-31 | 2026-09-30 |
| Ruby 3.0 | ruby30 | google-18-full | google-18-full/ruby30 | 2024-03-31 | 2025-03-31 |
| Ruby 2.7 | ruby27 | google-18-full | google-18-full/ruby27 | 2024-01-30 | 2025-01-30 |
| Ruby 2.6 | ruby26 | google-18-full | google-18-full/ruby26 | 2024-01-30 | 2025-01-30 |
PHP
| Exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| PHP 8.5 | php85 | google-24-full (par défaut) | google-24-full/php85 | 2029-12-31 | 2030-06-30 |
| PHP 8.4 | php84 | google-22-full (par défaut) | google-22-full/php84 | 2028-12-31 | 30/06/2029 |
| PHP 8.3 | php83 | google-22-full (par défaut) | google-22-full/php83 | 2027-12-31 | 2028-06-30 |
| PHP 8.2 | php82 | google-22-full (par défaut) | google-22-full/php82 | 2026-12-31 | 2027-06-30 |
| PHP 8.1 | php81 | google-18-full | google-18-full/php81 | 2025-12-31 | 2026-06-30 |
| PHP 7.4 | php74 | google-18-full | google-18-full/php74 | 2024-01-30 | 2025-01-30 |
.NET
| Environnement d'exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| .NET 10 | dotnet10 |
|
|
2028-11-14 | 2029-05-14 |
| .NET 8 | dotnet8 |
|
|
2026-11-10 | 2027-05-10 |
| .NET 6 | dotnet6 |
|
|
2024-11-12 | 2025-11-12 |
| .NET Core 3 | dotnet3 | google-18-full | google-18-full/dotnet3 | 2024-01-30 | 2025-01-30 |
OS uniquement
| Environnement d'exécution | ID d'exécution | Piles | Image de base de l'environnement d'exécution | Obsolescence | Mise hors service |
|---|---|---|---|---|---|
| OS 24 uniquement | osonly24 | google-24 (par défaut) | google-24/osonly24 | 30 avril 2029 |