From c22ce8646fa7482ba7016eafe5e902495bacf3d7 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 29 Jan 2020 16:27:22 +0000 Subject: Add demo setup scripts --- scripts/copyKey.sh | 3 +++ scripts/copyScripts.sh | 3 +++ scripts/runAgent.sh | 3 +++ scripts/runClient.sh | 3 +++ scripts/runFetcher.sh | 3 +++ scripts/runQuerySigner.sh | 3 +++ 6 files changed, 18 insertions(+) create mode 100755 scripts/copyKey.sh create mode 100755 scripts/copyScripts.sh create mode 100755 scripts/runAgent.sh create mode 100755 scripts/runClient.sh create mode 100755 scripts/runFetcher.sh create mode 100755 scripts/runQuerySigner.sh diff --git a/scripts/copyKey.sh b/scripts/copyKey.sh new file mode 100755 index 0000000..a2c4791 --- /dev/null +++ b/scripts/copyKey.sh @@ -0,0 +1,3 @@ +for num in 02 03 04 05; do + scp build/tmp/query_signer.pub "rainbow${num}:~/CloudAtlas/build/tmp/" +done diff --git a/scripts/copyScripts.sh b/scripts/copyScripts.sh new file mode 100755 index 0000000..4f39469 --- /dev/null +++ b/scripts/copyScripts.sh @@ -0,0 +1,3 @@ +for num in 02 03 04 05; do + scp scripts/run*.sh "rainbow${num}:~/CloudAtlas/scripts/" +done diff --git a/scripts/runAgent.sh b/scripts/runAgent.sh new file mode 100755 index 0000000..862697a --- /dev/null +++ b/scripts/runAgent.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./gradlew runAgent -Dhostname="rainbow${NODE_NUMBER}" -DzonePath="/${ZONE}/rainbow${NODE_NUMBER}" diff --git a/scripts/runClient.sh b/scripts/runClient.sh new file mode 100755 index 0000000..d6a7c7e --- /dev/null +++ b/scripts/runClient.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./gradlew runClient -Dhostname="rainbow${NODE_NUMBER}" -DzonePath="/${ZONE}/rainbow${NODE_NUMBER}" -DquerySignerHostname=rainbow01 diff --git a/scripts/runFetcher.sh b/scripts/runFetcher.sh new file mode 100755 index 0000000..fc1d9d5 --- /dev/null +++ b/scripts/runFetcher.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./gradlew runFetcher -Dhostname="rainbow${NODE_NUMBER}" -DzonePath="/${ZONE}/rainbow${NODE_NUMBER}" -DownAddr="10.1.1.1${NODE_NUMBER#0}" -DfallbackContacts="$FALLBACKS" diff --git a/scripts/runQuerySigner.sh b/scripts/runQuerySigner.sh new file mode 100755 index 0000000..333e7ec --- /dev/null +++ b/scripts/runQuerySigner.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./gradlew runQuerySigner -DquerySignerHostname=rainbow01 -Dhostname=rainbow01 -- cgit v1.2.3