Created
May 22, 2018 19:26
-
-
Save gajoseph/a6ce2ea5a00958bf822113a33c535a60 to your computer and use it in GitHub Desktop.
Google cloud create instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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