Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Generischer Builder
Buildpacks nutzt einen generischen Standard-Builder, der Container-Images erstellt, die zur Ausführung in Google Cloud-Diensten wie Google Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine und Cloud Run-Funktionen entwickelt wurden.
Der generische Buildpacks-Builder:
Erkennt die Sprache Ihres Quellcodes automatisch.
Bestimmt, ob dieser Quellcode eine Anwendung (Dienst) oder Funktion ist.
Schreibt Ihren Quellcode in ein bereitstellbares Container-Image.
Der generische Builder selbst ist ein Container-Image, das öffentlich in Container Registry gehostet wird.
Wenn Sie immer die neueste Version und das neueste Betriebssystem verwenden möchten, geben Sie das Tag latest an. Das latest-Tag verwendet standardmäßig die google-22-Version des generischen Builders und wird verwendet, wenn Sie den Befehl gcloud run deploy ausführen.
Wenn Sie an eine Version anpinnen möchten, lesen Sie die Anleitung unter Bestimmten Builder verwenden.
Buildpacks veröffentlichen auch die Builder, die zum Containerisieren von Anwendungen für die App Engine-Laufzeiten der zweiten Generation verwendet werden.
Die App Engine-Builder enthalten zusätzliche Buildpacks und App Engine-spezifische Konfigurationen. Sie sind beispielsweise für die Ausführungsgeschwindigkeit und automatische Updates optimiert. Builder richten sich nach Laufzeitsprache und Betriebssystem:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)"]]