Create multiple GCE VMs at a time.

This commit is contained in:
Tom Wilkie committed 2015-05-07 10:20:26 +00:00
1 parent 04ceb5620b
commit 432662bc86
2 files changed
+3 -5

No files matched your search

-1
View File
@@ -16,7 +16,6 @@ dependencies:
test: test:
pre: pre:
- ls -al /var/run/docker.sock
- mkdir -p $(dirname $SRCDIR) - mkdir -p $(dirname $SRCDIR)
- cp -r $(pwd)/ $SRCDIR - cp -r $(pwd)/ $SRCDIR
override: override:
+3 -4
View File
@@ -52,13 +52,12 @@ EOF
# Create new set of VMS # Create new set of VMS
function setup { function setup {
destroy destroy
names=
# Create and setup some VMs
for i in $(seq 1 $NUM_HOSTS); do for i in $(seq 1 $NUM_HOSTS); do
name="host$i" names="host$i $names"
gcloud compute instances create $name --image $IMAGE --zone $ZONE
done done
gcloud compute instances create $names --image $IMAGE --zone $ZONE
gcloud compute config-ssh --ssh-key-file $SSH_KEY_FILE gcloud compute config-ssh --ssh-key-file $SSH_KEY_FILE
hosts= hosts=