Google cloud - sinsunsan/archiref_wiki GitHub Wiki

Cloud launcher

https://console.cloud.google.com/launcher image of popular images : CMS, database... a bi like digital ocean

Gcloud

Utily to deploy app on google cloud https://cloud.google.com/deployment-manager/docs/deployments/?hl=en_US&_ga=1.257053390.497516360.1482743942

A deployment is an instantiation of a set of resources that are defined in a configuration. You provide a valid configuration in the request to create the deployment. A deployment can contain a number of resources, across a variety of Google Cloud Platform services.

The conf is made thanks to a yaml file Here is the yaml file of the hello world tuto

# [START runtime]
runtime: nodejs
env: flex
# [END runtime]

# Temporary setting to keep gcloud from uploading node_modules
skip_files:
 - ^node_modules$

How to deploy

 "name": "example-config-with-templates",
 "target": {
  "config": {
   "content": "resources:\n- name: vm-created-by-cloud-config\n  type: compute.v1.instance\n  properties:\n    zone: us-central1-a\n    machineType: https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes/n1-standard-1\n    disks:\n    - deviceName: boot\n      type: PERSISTENT\n      boot: true\n      autoDelete: true\n      initializeParams:\n        diskName: disk-created-by-cloud-config\n        sourceImage: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-7-wheezy-v20151104\n    networkInterfaces:\n    - network: https://www.googleapis.com/compute/v1/projects/myproject/global/networks/default\n"
  }
 }
}
```

Once apps have been deployed in a given project, the deployement will appear on a project per project basis 
https://console.cloud.google.com/deployments?project=bookshelf-153721
where project=bookshelf-153721 is the name of the project