From 8d613f39776420e547eb834df6868a1d58394742 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 16 Apr 2019 10:40:30 -0700 Subject: [PATCH] Selectively deploy beta testnet to GCE/AWS or both clouds (#3805) --- ci/testnet-manager.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ci/testnet-manager.sh b/ci/testnet-manager.sh index 0b8ce679c..0e263170e 100755 --- a/ci/testnet-manager.sh +++ b/ci/testnet-manager.sh @@ -241,19 +241,19 @@ start() { EC2_ZONE_ARGS+=("-z $val") done - [[ -n $EC2_NODE_COUNT ]] || EC2_NODE_COUNT=60 - [[ -n $GCE_NODE_COUNT ]] || GCE_NODE_COUNT=40 + # shellcheck disable=SC2068 + [[ -z $EC2_NODE_COUNT ]] || ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \ + -t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -u -P -a eipalloc-0f286cf8a0771ce35 \ + ${maybeReuseLedger:+-r} \ + ${maybeDelete:+-D} \ + ${GCE_NODE_COUNT:+-s} # shellcheck disable=SC2068 - ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \ - -t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -s -u -P -a eipalloc-0f286cf8a0771ce35 \ + [[ -z $GCE_NODE_COUNT ]] || ci/testnet-deploy.sh -p beta-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \ + -t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -P \ ${maybeReuseLedger:+-r} \ - ${maybeDelete:+-D} - # shellcheck disable=SC2068 - ci/testnet-deploy.sh -p beta-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \ - -t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -x -P \ - ${maybeReuseLedger:+-r} \ - ${maybeDelete:+-D} + ${maybeDelete:+-D} \ + ${EC2_NODE_COUNT:+-x} ) ;; testnet-beta-perf)