summaryrefslogtreecommitdiff
path: root/java-chaincode/start.sh
blob: fdfb0853ee36292c3de7dd258141ead62f618bc9 (plain)
1
2
3
4
5
6
export COMPOSE_PROJECT_NAME=java-chaincode
docker-compose -f docker-compose.yaml down
docker-compose -f docker-compose.yaml up -d
sleep 10
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.mydomain.com/msp" peer0.org1.mydomain.com peer channel create -o orderer.mydomain.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.mydomain.com/msp" peer0.org1.mydomain.com peer channel join -b mychannel.block