m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin <marcin.j.chrzanowski@gmail.com>2020-01-29 17:30:13 +0100
committerGitHub <noreply@github.com>2020-01-29 17:30:13 +0100
commita85b80446ea7c7f669aadebf9af5e81b277107ce (patch)
tree2fed914fbae6e1eb8573af3dc2dc4dd1a05d8d1f
parent23082aca8e8089474c5b2f7dfd5072dc68cc881a (diff)
parentc22ce8646fa7482ba7016eafe5e902495bacf3d7 (diff)
Merge pull request #135 from m-chrzan/scripts
Add demo setup scripts
-rwxr-xr-xscripts/copyKey.sh3
-rwxr-xr-xscripts/copyScripts.sh3
-rwxr-xr-xscripts/runAgent.sh3
-rwxr-xr-xscripts/runClient.sh3
-rwxr-xr-xscripts/runFetcher.sh3
-rwxr-xr-xscripts/runQuerySigner.sh3
6 files changed, 18 insertions, 0 deletions
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