Skip to content

Commit

Permalink
Merge pull request #155 from malscent/MB-52423-UpdateForSyncGateway3.0.3
Browse files Browse the repository at this point in the history
fix some test harness
  • Loading branch information
malscent authored Jun 3, 2022
2 parents e78e001 + 4e514db commit 35093e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/CouchbaseSyncGateway/createServer.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -eu
set -ux

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

Expand Down Expand Up @@ -48,7 +48,7 @@ AWS_RESPONSE=$(aws ec2 run-instances \
--key-name "$KEY_NAME" \
--region "$REGION" \
--iam-instance-profile Name="$PROFILE" \
--tag-specifications "ResourceType=instance,Tags=[{Key=identifier,Value=$TAG}, {Key=couchbase:server:username,Value=$USERNAME},{Key=couchbase:server:password,Value=$PASSWORD},{Key=couchbase:server:make_cluster,Value=true},]" \
--tag-specifications "ResourceType=instance,Tags=[{Key=identifier,Value=$TAG}, {Key=couchbase:server:username,Value=$USERNAME},{Key=couchbase:server:password,Value=$PASSWORD},{Key=couchbase:server:make_cluster,Value=true},{Key=couchbase:server:disk,Value=/dev/sdk},]" \
--block-device-mappings "DeviceName=/dev/sdk,Ebs={DeleteOnTermination=true,VolumeSize=100,VolumeType=gp3}" \
--output json)

Expand All @@ -72,5 +72,5 @@ until [[ "$poolEntry" != "\"unknown pool\"" ]]; do
sleep 10
poolEntry=$(curl -X GET http://$PUBLIC_IP:8091/pools/default -s -u "$USERNAME:$PASSWORD")
done

sleep 10
curl -X POST -u "$USERNAME:$PASSWORD" "http://$PUBLIC_IP:8091/sampleBuckets/install" -d '["travel-sample"]' -s &> /dev/null

0 comments on commit 35093e9

Please sign in to comment.