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. 8
      aws-scripts/setup_golang.sh

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

@ -1,4 +1,3 @@
#!/bin/bash -x #!/bin/bash -x
cd /home/ec2-user/projects/src/harmony-benchmark cd /home/ec2-user/projects/src/harmony-benchmark
go get github.com/go-stack/stack
./deploy_one_instance.sh global_nodes.txt ./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 echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# GOPATH is the location of your work directory # 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 # 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