Skip to content

Commit

Permalink
A10 ADMIN PRINCIPAL IS THE CULPRIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Ananth committed Jul 18, 2018
1 parent 7586e54 commit 30132ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions config-all/configtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
Name: OrdererOrg
ID: OrdererMSP
MSPDir: crypto-config/ordererOrganizations/example.com/msp
AdminPrincipal: Role.MEMBER
- &Org1
Name: Org1
ID: Org1MSP
Expand Down
34 changes: 19 additions & 15 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,22 @@ resource "aws_instance" "fabric" {
inline = [
"sudo mount -t nfs -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport 192.168.1.240:/ /home/ubuntu/fabric-1.1-kafka-multi-orderer",
"sudo chown -R ubuntu fabric-1.1-kafka-multi-orderer",
"source .profile",
"git clone https://github.com/InflatibleYoshi/fabric-1.1-kafka-multi-orderer",
"cd fabric-1.1-kafka-multi-orderer",
"python start.py ${var.n} terraform",
"cd composer",
"chmod +x ./howtobuild.sh",
"./howtobuild.sh",
"cd ..",
"sudo chown -R ubuntu ../",
"./startFabric.sh",
"chmod +x createPeerAdminCard.sh",
"./createPeerAdminCard.sh",
"composer-playground",
]

# "cd composer",
# "chmod +x ./howtobuild.sh",
# "/howtobuild.sh",
# "cd ..",
# "sudo chown -R ubuntu ../",
# "/startFabric.sh",
# "chmod +x createPeerAdminCard.sh",
# "/createPeerAdminCard.sh",
# "composer-playground",

connection {
type = "ssh"
user = "ubuntu"
Expand All @@ -77,14 +79,16 @@ resource "aws_instance" "fabric-peers" {
inline = [
"sudo mount -t nfs -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport 192.168.1.240:/ /home/ubuntu/fabric-1.1-kafka-multi-orderer",
"sudo chown -R ubuntu fabric-1.1-kafka-multi-orderer",
"cd fabric-1.1-kafka-multi-orderer",
"chmod +x startFabric-Peer${count.index + 2}.sh",
"./startFabric-Peer${count.index + 2}.sh",
"chmod +x createPeerAdminCard.sh",
"./createPeerAdminCard.sh",
"composer-playground",
]

# "source .profile",
# "cd fabric-1.1-kafka-multi-orderer",
# "chmod +x startFabric-Peer${count.index + 2}.sh",
# "/startFabric-Peer${count.index + 2}.sh",
# "chmod +x createPeerAdminCard.sh",
# "/createPeerAdminCard.sh",
# "composer-playground",

connection {
type = "ssh"
user = "ubuntu"
Expand Down

0 comments on commit 30132ff

Please sign in to comment.