Added section to teardown instances.

This commit is contained in:
2021-01-20 15:02:08 +13:00
parent ffa6a22ddb
commit b54268cc13
3 changed files with 45 additions and 7 deletions

View File

@ -7,7 +7,7 @@
# Retrieve the vm name
export gcp_machine_name=$(gcloud compute instances list --limit=1 --format='value(name.basename())')
export gcp_machine_name=$(gcloud compute instances list --limit=1 --format='value(name.basename())')
# Connect to the machine using ssh
gcloud compute ssh $gcp_machine_name --ssh-key-file ~/.ssh/$USER -- "curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh"