Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Se vuoi utilizzare un'implementazione alternativa di Python, Java, Node.js, Go, Ruby, PHP, .NET o se scrivi codice in un altro linguaggio, i runtime personalizzati fanno al caso tuo. I runtime personalizzati
ti consentono di definire nuovi ambienti di runtime, che potrebbero includere componenti aggiuntivi come interpreti di linguaggi o server di applicazioni.
Per creare un runtime personalizzato, crea un Dockerfile con un'immagine di base di tua scelta, quindi aggiungi i comandi docker che generano l'ambiente di runtime che preferisci. ร importante ricordare che รจ tua responsabilitร garantire che i componenti specificati nel Dockerfile siano compatibili e configurati per offrire le prestazioni desiderate.
Quando utilizzi un runtime personalizzato, devi scrivere il codice dell'applicazione per gestire determinate richieste di controllo di integritร e del ciclo di vita dell'ambiente flessibile. Prima di iniziare a sviluppare l'applicazione, inizia leggendo come creare un runtime personalizzato.
Le applicazioni che utilizzano ambienti di runtime personalizzati sfruttano tutti i vari
Google Cloud servizi utilizzando le API REST pubbliche o le librerie client,
come l'API App Engine Admin e le librerie client di Google.
Utilizza la tabella seguente per capire le differenze tra un runtime personalizzato e l'insieme esistente di runtime di App Engine:
Funzionalitร
Esecuzione flessibile
Runtime personalizzato
Dockerfile
File predefinito fornito automaticamente dall'SDK
Scritto a mano dallo sviluppatore
Modifiche al Dockerfile consentite
Sรฌ
Sรฌ
Lingue
Python, Java, Node.js, Go, Ruby, PHP, .NET
Qualsiasi software in grado di gestire le richieste HTTP
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema รจ stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-01 UTC."],[[["\u003cp\u003eCustom runtimes enable the use of any language or software capable of handling HTTP requests, beyond the standard supported options like Python, Java, and Node.js.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers create custom runtimes by crafting a Dockerfile to define the runtime environment, including any necessary components.\u003c/p\u003e\n"],["\u003cp\u003eUsers of custom runtimes are responsible for the compatibility and performance of the components specified in their Dockerfile.\u003c/p\u003e\n"],["\u003cp\u003eApplications leveraging custom runtimes can access all Google Cloud services via public REST APIs or client libraries.\u003c/p\u003e\n"],["\u003cp\u003eUnlike standard flexible runtimes where the Dockerfile is automatically supplied, developers must hand-write the Dockerfile for custom runtime environments.\u003c/p\u003e\n"]]],[],null,["# About Custom runtimes\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nIf you'd like to use an alternative implementation of Python,\nJava, Node.js, Go,\nRuby, PHP, .NET or you write\ncode in any other language, then custom runtimes are for you. Custom runtimes\nallow you to define new runtime environments, which might include additional\ncomponents like language interpreters or application servers.\n\nTo create a custom runtime, you create a Dockerfile with a base image of your\nchoice, and then add the `docker` commands that build your desired runtime\nenvironment. It's important to remember that you are responsible for ensuring\nthat the components that you specified in your Dockerfile are compatible and\nconfigured to deliver the desired performance.\n\nWhen you use a custom runtime, you must write your application code to handle\ncertain flexible environment life-cycle and health checking requests. Start by\nreading about how to [build a custom\nruntime](/appengine/docs/flexible/custom-runtimes/build) before you begin\ndeveloping your application.\n\nApplications that use custom runtimes take advantage of all the various\nGoogle Cloud services by using the public REST APIs or client libraries,\nsuch as the [App Engine Admin API](/appengine/docs/admin-api) and the [Google Client\nLibraries](/python/docs/reference).\n\nUse the following table to understand how a custom runtime compares to the\nexisting set of App Engine runtimes:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]