Créer un service Cloud Run à partir d'un exemple d'application dans Cloud Code pour Cloud Shell
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cloud Code pour Cloud Shell, qui est intégré à l'éditeur Cloud Shell, est fourni avec un ensemble d'exemples d'applications pour vous aider à démarrer rapidement.
Pour créer un service Cloud Run à l'aide d'un exemple:
Ouvrez la palette de commandes (appuyez sur Ctrl/Cmd+Shift+P ou cliquez sur Affichage > Palette de commandes), puis exécutez la commande Cloud Code: New Application (Cloud Code : Nouvelle application).
Sélectionnez Application Cloud Run comme type d'exemple.
Sélectionnez l'exemple pour la langue que vous utilisez.
Choisissez un emplacement pour le service sur votre machine locale, puis appuyez sur Enter.
Cloud Code clone l'exemple d'application et ouvre le projet que vous venez de créer pour l'utiliser.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/05 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/05 (UTC)."],[[["\u003cp\u003eCloud Code for Cloud Shell, integrated into the Cloud Shell Editor, offers sample applications to facilitate quick project starts.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a Cloud Run service by using the "Cloud Code: New Application" command in the command palette.\u003c/p\u003e\n"],["\u003cp\u003eCreating a Cloud Run service involves selecting "Cloud Run application" and then choosing your desired sample language.\u003c/p\u003e\n"],["\u003cp\u003eAfter selecting a service location, Cloud Code clones the sample application and opens the project for you.\u003c/p\u003e\n"]]],[],null,["# Create a Cloud Run service from a sample application in Cloud Code for Cloud Shell\n\nCloud Code for Cloud Shell which is built into [Cloud Shell Editor](https://ide.cloud.google.com), comes with a collection of sample applications to get you started quickly.\n\n\u003cbr /\u003e\n\nTo create a Cloud Run service using a sample:\n\n1. Open the command palette\n (press `Ctrl`/`Cmd`+`Shift`+`P` or click **View** \\\u003e **Command Palette** ) and\n then run the **Cloud Code: New Application** command.\n\n2. Select **Cloud Run application** as the type of sample.\n\n3. Select the sample for the language you're using.\n\n4. Choose a service location on your local machine and then press `Enter`.\n\n Cloud Code clones the sample application and opens your\n newly-created project for use."]]