Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Se você quiser utilizar uma implementação alternativa de Python,
Java, Node.js, Go,
Ruby, PHP, .NET ou escrever
códigos em qualquer outra linguagem, precisará dos ambientes de execução personalizados. Os ambientes de execução personalizados
permitem definir novos ambientes de execução, que podem incluir outros
componentes, como intérpretes de linguagem ou servidores de aplicativos.
Para criar um tempo de execução personalizado, crie um Dockerfile com uma imagem base de sua escolha e, em seguida, adicione os comandos docker que criam o runtime environment desejado. É importante lembrar que você é responsável por garantir que os componentes especificados no Dockerfile sejam compatíveis e que estejam configurados para fornecer o desempenho que você quer.
Quando um ambiente de execução personalizado é utilizado, é preciso gravar o código do aplicativo para processar determinadas solicitações de verificação de ciclo de vida e de verificação de integridade do ambiente flexível. Comece aprendendo como criar um tempo de execução personalizado, antes de começar a desenvolver seu aplicativo.
Os aplicativos que usam ambientes de execução personalizados aproveitam todos os vários
serviços doGoogle Cloud usando as APIs REST públicas ou as bibliotecas de cliente,
como a API Admin do App Engine e as bibliotecas de cliente do
Google.
Use a tabela a seguir para entender como um ambiente de execução personalizado pode ser comparado ao conjunto existente de tempos de execução do App Engine:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-11 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"]]