Blocs utilisateurs du site : Infos du compte / droits utilisateurs / récapitulatif

Identifiez-vous

Authentifiez-vous avec votre compte ZW3B et profitez des services membres.

Identifiant :
Mot de passe :
  
  

Comment-faire pour déployer son application sur google

Comment faire pour déployer son application dans le Google Cloud grâce à Google App Engine.

Informations

Dates
  • Publication : Dimanche 05 février 2017
  • Modification : Dimanche 05 février 2017

Cette page est en cours de rédaction...

Et en plus c'est posé en mode brut :s et loin d'être fonctionnel :/ A lire de bas en haut ^^

Connectez-vous sur le Google Cloud SHell.

gcloud auth list

12:26:34 o_romain_jaillet@G0ZW3B:~ $  gcloud auth list
Credentialed accounts:
- o.romain.jaillet(AT)lab3w(DOT)fr (active)
To set the active account, run:
$ gcloud config set account ``ACCOUNT''

https://cloud.google.com/sdk/gcloud/reference/config/set

gcloud config set project zw3b-app

gcloud config set app docker_build local

gcloud projects list

11:15:15 o_romain_jaillet@G0ZW3B:~/src/zw3b-app/gcloud $ gcloud projects list
PROJECT_ID   NAME         PROJECT_NUMBER
zw3b-app     ZW3B-App     608245778394
zw3b-videos  ZW3B-Videos  504919908947

gcloud init

12:27:12 o_romain_jaillet@G0ZW3B:~ $ gcloud init
Welcome! This command will take you through the configuration of gcloud.

Settings from your current configuration [cloudshell-27172] are:
Your active configuration is: [cloudshell-27172]
[app]
docker_build = local
suppress_change_warning = True
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 5
[core]
account = o.romain.jaillet(AT)lab3w(DOT)fr
check_gce_metadata = False
disable_usage_reporting = False
project = polar-terminal-124510
[metrics]
environment = devshell
Pick configuration to use:
[1] Re-initialize this configuration [cloudshell-27172] with new settings 
[2] Create a new configuration
Please enter your numeric choice:  1
Your current configuration has been set to: [cloudshell-27172]
Pick credentials to use:
[1] o.romain.jaillet(AT)lab3w(DOT)fr
[2] Log in with new credentials
Please enter your numeric choice:  1
You are now logged in as: [o.romain.jaillet(AT)lab3w(DOT)fr]
Pick cloud project to use: 
[1] [zw3b-app]
[2] [zw3b-videos]
Please enter your numeric choice:  1

Your current project has been set to: [zw3b-app].
Not setting default zone/region (this feature makes it easier to use
[gcloud compute] by setting an appropriate default value for the
--zone and --region flag).
See https://cloud.google.com/compute/docs/gcloud-compute section on how to set
default compute region and zone manually. If you would like [gcloud init] to be
able to do this for you the next time you run it, make sure the
Compute Engine API is enabled for your project on the
https://console.developers.google.com/apis page.
Do you want to use Google's source hosting (see 
"https://cloud.google.com/source-repositories/docs/") (Y/n)?  
This project has one or more associated Git repositories.
Pick Git repository to clone to your local machine:
[1] [default]
[2] Do not clone
Please enter your numeric choice:  
Please enter a value between 1 and 2:  2
gcloud has now been configured!
You can use [gcloud config] to change more gcloud settings.
Your active configuration is: [cloudshell-27172]
[app]
docker_build = local
suppress_change_warning = True
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 5
[core]
account = o.romain.jaillet(AT)lab3w(DOT)fr
check_gce_metadata = False
disable_usage_reporting = False
project = zw3b-app
[metrics]
environment = devshell

gcloud info

10:40:36 o_romain_jaillet@G0ZW3B:~/src/zw3b-app/gcloud $ gcloud info
Google Cloud SDK [107.0.0]
Platform: [Linux, x86_64]
Python Version: [2.7.9 (default, Mar  1 2015, 12:57:24)  [GCC 4.9.2]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]
Installation Root: [/google/google-cloud-sdk]
Installed Components:
core: [2016.04.21]
app-engine-python: [1.9.36]
core-nix: [2016.03.28]
pubsub-emulator: [2016.02.22]
kubectl: []
app-engine-java: [1.9.36]
gcloud: []
gsutil-nix: [4.18]
app-engine-php: [ ]
beta: [2016.01.12]
gsutil: [4.19]
bq: [2.0.24]
alpha: [2016.01.12]
gcd-emulator: [v1beta3-1.0.0]
kubectl-linux-x86_64: [1.2.2]
bq-nix: [2.0.24]
System PATH: [/google/google-cloud-sdk/bin:/usr/local/nvm/versions/node/v0.12.7/bin:/home/o_romain_jaillet/gopath/bin:/google
/gopath/bin:/usr/local/go/bin:/gradle-2.12/bin:/apache-maven-3.2.2/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/loca
l/bin:/usr/sbin:/usr/bin:/sbin:/bin:/google/go_appengine:/google/google_appengine]
Cloud SDK on PATH: [True]
WARNING: There are old versions of the Google Cloud Platform tools on your system PATH.
/google/go_appengine/dev_appserver.py
/google/google_appengine/dev_appserver.py
Installation Properties: [/google/google-cloud-sdk/properties]
User Config Directory: [/tmp/tmp.mC0ME4DtPF]
Active Configuration Name: [cloudshell-30054]
Active Configuration Path: [/tmp/tmp.mC0ME4DtPF/configurations/config_cloudshell-30054]
Account: [o.romain.jaillet(AT)lab3w(DOT)fr]
Project: [zw3b-app]
Current Properties:
[metrics]
  environment: [devshell]
[core]
  project: [zw3b-app]
  check_gce_metadata: [False]
  account: [o.romain.jaillet(AT)lab3w(DOT)fr]
  disable_usage_reporting: [False]
[app]
  use_gsutil: [true]
  use_cloud_build: [True]
  suppress_change_warning: [True]
[compute]
  gce_metadata_read_timeout_sec: [5]
[component_manager]
  disable_update_check: [True]
Logs Directory: [/tmp/tmp.mC0ME4DtPF/logs]
Last Log File: [/tmp/tmp.mC0ME4DtPF/logs/2016.05.03/10.25.51.707231.log]
10:41:57 o_romain_jaillet@G0ZW3B:~/src/zw3b-app/gcloud $

Pour mettre à jour votre installation du SDK Google à la dernière version [99.0.0], faites :

gcloud components update

gcloud components list

12:51:35 o_romain_jaillet@G0ZW3B:~ $ gcloud components list
Your current Cloud SDK version is: 99.0.0
The latest available version is: 99.0.0
+-----------------------------------------------------------------------------+
Š                                  Components                                 Š
+-----------------------------------------------------------------------------Š
Š   Status  Š               Name              Š         ID        Š    Size   Š
+-----------+---------------------------------+-------------------+-----------Š
Š Installed Š BigQuery Command Line Tool      Š bq                Š   < 1 MiB Š
Š Installed Š Cloud Datastore Emulator        Š gcd-emulator      Š  38.1 MiB Š
Š Installed Š Cloud Pub/Sub Emulator          Š pubsub-emulator   Š  10.1 MiB Š
Š Installed Š Cloud SDK Core Libraries        Š core              Š   3.9 MiB Š
Š Installed Š Cloud Storage Command Line Tool Š gsutil            Š   2.6 MiB Š
Š Installed Š Default set of gcloud commands  Š gcloud            Š           Š
Š Installed Š gcloud Alpha Commands           Š alpha             Š   < 1 MiB Š
Š Installed Š gcloud Beta Commands            Š beta              Š   < 1 MiB Š
Š Installed Š gcloud app Java Extensions      Š app-engine-java   Š 101.4 MiB Š
Š Installed Š gcloud app Python Extensions    Š app-engine-python Š   7.2 MiB Š
Š Installed Š kubectl                         Š kubectl           Š   5.2 MiB Š
+-----------------------------------------------------------------------------+

Pour installer ou supprimer un component sur SDK version, faites :

gcloud components install COMPONENT_ID
gcloud components remove COMPONENT_ID


Déployer une application sur Google Cloud

Découvrez comment créer et déployer des applications sur App Engine avec une simple application "Hello World'.

Actuellement, Google App Engine nous propose de développer des applications avec les languages suivant :

appcfg.py -A zw3b-app update app.yaml

Si vous ne connaissez pas App Engine, commencez sur cette page.

;)





Autheur de la page

LAB3W.ORJ

LAB3W.ORJ

  • Prénom : Olivier Romain Luc
  • Nom : Jaillet-ramey
  • Arrivé le mardi 19 octobre 1976 (1976/10/19 00:00)
    43 ans d'activité !

Firefox Nighlty

Nos amis de Framasoft s'intéressent à Mozilla et leur ont posé des questions à propos de Nightly : Firefox Night-club, entrée libre !






Valid XHTML 1.0 Strict CSS Valide !

ipv6 ready