-
Notifications
You must be signed in to change notification settings - Fork 5
/
createChannel.sh
12 lines (7 loc) · 1006 Bytes
/
createChannel.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
docker exec cli peer channel create -o orderer.example.com:7050 -c ebenezer -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
#sleep 5
#docker cp ebenezer.block cli:/opt/gopath/src/github.com/hyperledger/fabric/peer/
docker exec cli peer channel join -b ebenezer.block
docker exec -e CORE_PEER_ADDRESS=peer1.org1.example.com:8051 -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt cli peer channel join -b ebenezer.block
docker exec cli peer channel update -o orderer.example.com:7050 -c ebenezer -f ./channel-artifacts/Org1MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem