Skip to content

Instantly share code, notes, and snippets.

@gajoseph
Created May 22, 2018 19:26
Show Gist options
  • Save gajoseph/a6ce2ea5a00958bf822113a33c535a60 to your computer and use it in GitHub Desktop.
Save gajoseph/a6ce2ea5a00958bf822113a33c535a60 to your computer and use it in GitHub Desktop.
Google cloud create instance
### CReate instance
gcloud compute instances create oracent --zone us-central1-a --image-family=centos-7 --image-project=centos-cloud --boot-disk-size "100" --boot-disk-type "pd-standard" --boot-disk-device-name "oracent" --boot-disk-auto-delete
### Start
gcloud compute instances start oracent --zone us-central1-a
#### Copy files over
gcloud compute scp c:\users\tgaj2\aws\ora\*.sh c:\users\tgaj2\aws\ora\Dockerfile tgaj2@oracent:/home/tgaj2 --zone us-central1-a
# SSH
gcloud compute ssh mylove@oracent --zone us-central1-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment