From b006b8aeec20994481d1d0045b1981767e63dd10 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 23 May 2020 07:38:31 +0000 Subject: [PATCH] Readme, add gcloud --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index d802783..1d9f9ab 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ #Add this line in postinstall script: #During Create Instance, > Management, > Automation curl https://git.mailliet.ovh/ben/GCP-PostInstall/raw/branch/master/docker-install.sh | sh + +#Or using gcloud: + +#List available OS Images: +gcloud compute images list | grep debian +#deploy VM +gcloud beta compute instances create instance-3 \ +--zone=us-east1-b \ +--machine-type=f1-micro \ +--subnet=default \ +--network-tier=PREMIUM \ +--metadata=startup-script=https://git.mailliet.ovh/ben/GCP-PostInstall/raw/branch/master/docker-install.sh \ +--maintenance-policy=MIGRATE \ +--image=debian-10-buster-v20200521 \ +--image-project=debian-cloud +