-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands
52 lines (22 loc) · 2.06 KB
/
commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
commands
create channel artifacts :
channel.tx :
"./../bin/configtxgen -profile TwoOrgChannel -outputCreateChannelTx ./config/channel.tx -channelID bankchannel"
genesis.block
"../bin/configtxgen -profile TwoOrgOrdererGenesis -outputBlock ./config/genesis.block"
create containers :
"docker-compose -f docker-compose.yml up -d ca_axis ca_yes orderer.banking.com peer0.axis.com peer1.axis.com peer2.axis.com peer0.yes.com peer1.yes.com peer2.yes.com"
create channel in peer0 Axis :
"docker exec -e "CORE_PEER_LOCALMSPID=AxisMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" peer0.axis.com peer channel create -o orderer.banking.com:7050 -c bankchannel -f /etc/hyperledger/configtx/channel.tx"
join channel with peer0 Axis :
"docker exec -e "CORE_PEER_LOCALMSPID=AxisMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" peer0.axis.com peer channel join -b bankchannel.block"
fetch channel in peer0 yes :
"docker exec -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" peer0.yes.com peer channel fetch config -o orderer.banking.com:7050 -c bankchannel"
join channel with peer0 yes :
"docker exec -e "CORE_PEER_LOCALMSPID=YesMSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" peer0.yes.com peer channel join -b bankchannel_config.block"
install chaincode in peer0 axis :
"docker exec -e "CORE_PEER_LOCALMSPID=AxisMSP" peer0.axis.com peer chaincode install -n democc -v v1 -p chaincode/chaincode_example02/node -l node"
instantiate chaincode in peer0 axis :
"docker exec -e "CORE_PEER_LOCALMSPID=AxisMSP" peer0.axis.com peer chaincode instantiate -o orderer.banking.com:7050 -C bankchannel -n democc -l node -v v1 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR('AxisMSP.peer')""
upgrade chaincode :
"docker exec -e "CORE_PEER_LOCALMSPID=YesMSP" peer0.yes.com peer chaincode upgrade -o orderer.banking.com:7050 -C bankchannel -n democc -l node -v v2.4 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR('YesMSP.peer')""