Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Builder genérico
O Buildpacks tem um builder genérico padrão que cria imagens
de contêineres projetadas para serem executadas nos serviços do Google Cloud, incluindo, mas não se limitando a:
Google Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine e
as funções do Cloud Run.
O builder genérico de buildpacks:
Detecta automaticamente a linguagem do seu código-fonte.
Determina se o código-fonte é um aplicativo (serviço) ou função.
Cria seu código-fonte em uma imagem de contêiner implantável.
O builder genérico é uma imagem de contêiner hospedada publicamente no Container Registry.
Para usar sempre a versão e o sistema operacional mais recentes, especifique a tag latest. A tag latest usa como padrão a versão google-22 do builder genérico e é usada quando você executa o comando gcloud run deploy.
Se você precisar fixar em uma versão, consulte as instruções sobre como Usar um builder específico.
Os builders do App Engine incluem pacotes de criação adicionais e configurações específicas do App Engine. Por exemplo, elas são otimizadas para
velocidade de execução e atualizações automáticas. Os builders são classificados por linguagem de execução e sistema operacional:
[[["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 2024-12-22 UTC."],[[["\u003cp\u003eThe Buildpacks generic builder creates container images for deployment on various Google Cloud services, such as Google Kubernetes Engine, Cloud Run, and App Engine.\u003c/p\u003e\n"],["\u003cp\u003eThis generic builder automatically detects the source code's language, determines if it's an application or function, and then builds it into a deployable container image.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elatest\u003c/code\u003e tag for the generic builder defaults to the \u003ccode\u003egoogle-22\u003c/code\u003e version, which runs on Ubuntu 22, but you can use specific versions like \u003ccode\u003ev1\u003c/code\u003e or \u003ccode\u003egoogle-22\u003c/code\u003e to pin to a particular operating system and set of supported languages.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine builders provide optimized containerization for App Engine second-generation runtimes, featuring additional buildpacks, configurations, and language version support based on Ubuntu 18 and Ubuntu 22.\u003c/p\u003e\n"],["\u003cp\u003eThe generic builder supports a variety of languages including Python, Node.js, Java, Go, Ruby, PHP, and .NET Core, with different supported versions depending on if using \u003ccode\u003ebuilder:google-22\u003c/code\u003e or \u003ccode\u003ebuilder:v1\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Builders\n\nGeneric Builder\n---------------\n\nBuildpacks has a default generic builder that creates container\nimages designed to run on Google Cloud services, including but not limited to:\nGoogle Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine, and\nCloud Run functions.\n\nThe buildpacks generic builder:\n\n1. Automatically detects the language of your source code. The buildpacks generic builder scans common project configuration files to determine the specific language version. For example, if the builder detects the source code as Node.js, it then inspects the `engines` field in the `package.json` file to determine a specific version of Node.js. If the builder can't determine a specific version, it uses the latest available version.\n2. Determines if that source code is an application (service) or function.\n3. Builds your source code into a deployable container image.\n\nThe generic builder itself is a container image that's publicly hosted on\nContainer Registry.\n\n### Default builder\n\nTo always use the most recent version and operating system, you can specify the\n`latest` tag. The `latest` tag defaults to the `google-22` version of the\ngeneric builder and is used when you run the `gcloud run deploy` command.\nIf you need to pin to a version, see the instructions about how to\n[Use a specific builder](/docs/buildpacks/use-a-specific-builder).\n\n### `builder:google-22` supported languages\n\n### `builder:v1` supported languages\n\nApp Engine builder\n------------------\n\nBuildpacks also publish the builders that are used to\ncontainerize applications for the App Engine\n[second-generation runtimes](/appengine/docs/standard/runtimes).\n\nThe App Engine builders include additional buildpacks and\nApp Engine-specific configurations. For example, they are optimized for\nexecution speed and automatic updates. Builders are by runtime language and\noperating system:\n\nWhat's next\n-----------\n\n- [Use a specific builder](/docs/buildpacks/use-a-specific-builder)\n- [Build an application](/docs/buildpacks/build-application)\n- [Build a function](/docs/buildpacks/build-function)"]]