correcting preprocess code and setting up gostack

pull/8/head
alok 7 years ago
parent cb21058bd4
commit 17321b82a6
  1. 12
      aws-scripts/preprocess_peerlist.py
  2. 1
      aws-scripts/run_instances.sh
  3. 10
      aws-scripts/setup_golang.sh

@ -8,12 +8,14 @@ if __name__ == "__main__":
mylist = myline.split(" ")
ip = mylist[0]
node = mylist[2]
if node != "transaction":
peerList.append(myline)
if str(ip) != str(current_ip):
if node != "transaction":
peerList.append(myline)
else:
h = open("isTransaction.txt","w")
h.write("I am just a transaction generator node")
h.close()
if node == "transaction":
h = open("isTransaction.txt","w")
h.write("I am just a transaction generator node")
h.close()
f.close()
g = open("global_peerlist.txt","w")
for myline in peerList:

@ -1,4 +1,3 @@
#!/bin/bash -x
cd /home/ec2-user/projects/src/harmony-benchmark
go get github.com/go-stack/stack
./deploy_one_instance.sh global_nodes.txt

@ -6,7 +6,13 @@ sudo yum install -y golang
echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# GOPATH is the location of your work directory
echo "export GOPATH=/home/ec2-user/projects" >> $HOME/.bash_profile
echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# PATH in order to access go binary system wide
echo "export PATH=$PATH:$GOROOT/bin" >> $HOME/.bash_profile
echo "export PATH=$PATH:$GOROOT/bin" >> $HOME/.bash_profile
export GOROOT=/usr/lib/golang
export GOROOT=/usr/lib/golang
export PATH=$PATH:$GOROOT/bin
source $HOME/.bash_profile
sudo go get github.com/go-stack/stack
Loading…
Cancel
Save