Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Abhängigkeiten für Ihre App Engine-Anwendungen in Artifact Registry speichern
Deklarieren Sie Abhängigkeiten in Ihren Node.js- und Python-Anwendungen in Artifact Registry.
Mit Cloud Build Ihre Anwendung in App Engine bereitstellen.
Erforderliche Berechtigungen
Flexible App Engine-Umgebung
Wenn sich die flexible App Engine-Umgebung und die Artifact Registry im selben Projekt befinden, hat das Standarddienstkonto der App Engine Berechtigungen zum Abrufen von Containern aus Repositories.
Wenn Sie Ihre Anwendungen auch mit Cloud Build containerisieren und in Artifact Registry speichern, gewähren Sie dem Cloud Build-Dienstkonto die Rolle „Artifact Registry-Autor“.
App Engine-Standardumgebung:
In der App Engine-Standardumgebung wird das Cloud Build-Dienstkonto zum Erstellen und Bereitstellen Ihrer Anwendungen verwendet, einschließlich der Integration von Abhängigkeiten, die in Artifact Registry gespeichert sind.
Wenn sich App Engine und Artifact Registry im selbenGoogle Cloud Projekt befinden, hat das Dienstkonto die erforderlichen Berechtigungen zum Herunterladen aus Repositories.
Wenn sich App Engine und Artifact Registry in verschiedenen Projekten befinden, müssen Sie dem Dienstkonto Repositoryzugriff gewähren.
Wenn Sie auch Cloud Build verwenden, um Artefakte in Repositories hochzuladen, gewähren Sie dem Cloud Build-Dienstkonto die Rolle „Artifact Registry-Autor“.
Zugriff auf Abhängigkeiten konfigurieren
Für Anwendungen in der Standardumgebung finden Sie in der Dokumentation zur App Engine-Standardumgebung Konfigurationsanleitungen für npm und Python.
Informationen zum Einbeziehen von Abhängigkeiten in Builds, die Sie mit Cloud Build ausführen, finden Sie unter In Cloud Build einbinden.
[[["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: 2025-03-10 (UTC)."],[[["Artifact Registry allows you to store dependencies for your App Engine applications."],["You can declare dependencies within Artifact Registry for both Node.js and Python applications, and then leverage Cloud Build to deploy your application to App Engine."],["For App Engine flexible environment, the default service account has permissions to pull containers from Artifact Registry when they're in the same project, and if using Cloud Build to containerize apps, you need to grant the Cloud Build service account the Artifact Registry Writer role."],["In the App Engine standard environment, the Cloud Build service account handles building and deploying applications, including dependencies from Artifact Registry, and if they're in different projects, you'll need to grant the service account repository access, with options for read-only or writer roles."],["To configure dependency access, you can refer to the App Engine standard environment documentation for npm and Python, and to include dependencies in Cloud Build runs, you can integrate with Cloud Build."]]],[]]