Hyperledger结构-在“ Balanc-transfer”示例中添加CLI和Couchdb

时间:2018-12-06 12:13:45

标签: hyperledger-fabric hyperledger-fabric-ca

我正在修改结构样本中的“余额转移”示例,并尝试将cli和benchdb添加到其中。但是在实例化时给了我一个错误。我已经修改了docker-compose.yaml文件。所有文件都需要修改。 这是我的docker.compose.yaml文件。有人可以建议在其他地方还需要更改吗? 版本:“ 2”

网络:   余额_2:

服务:   ca.org1.example.com:     图片:hyperledger / fabric-ca     环境:       -FABRIC_CA_HOME = / etc / hyperledger / fabric-ca-server       -FABRIC_CA_SERVER_CA_NAME = ca-org1       -FABRIC_CA_SERVER_CA_CERTFILE = / etc / hyperledger / fabric-ca-server-config / ca.org1.example.com-cert.pem       -FABRIC_CA_SERVER_CA_KEYFILE = / etc / hyperledger / fabric-ca-server-config / e19ee52be608318ceb05c1a9a133a2f8fd1951d692eafaa3b388d58de918ce48_sk       -FABRIC_CA_SERVER_TLS_ENABLED = true       -FABRIC_CA_SERVER_TLS_CERTFILE = / etc / hyperledger / fabric-ca-server-config / ca.org1.example.com-cert.pem       -FABRIC_CA_SERVER_TLS_KEYFILE = / etc / hyperledger / fabric-ca-server-config / e19ee52be608318ceb05c1a9a133a2f8fd1951d692eafaa3b388d58de918ce48_sk     端口:       -“ 7054:7054”     命令:sh -c'fabric-ca-server start -b admin:adminpw -d'     数量:       -./channel/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config     container_name:ca-org1     网络:       -balance_2

orderer.example.com:     container_name:orderer.example.com     图片:超级账本/织物订购者     环境:       -ORDERER_GENERAL_LOGLEVEL =调试       -ORDERER_GENERAL_LISTENADDRESS = 0.0.0.0       -ORDERER_GENERAL_GENESISMETHOD =文件       -ORDERER_GENERAL_GENESISFILE = / etc / hyperledger / configtx / genesis.block       -ORDERER_GENERAL_LOCALMSPID = OrdererMSP       -ORDERER_GENERAL_LOCALMSPDIR = / etc / hyperledger / crypto / orderer / msp       -ORDERER_GENERAL_TLS_ENABLED = true       -ORDERER_GENERAL_TLS_PRIVATEKEY = / etc / hyperledger / crypto / orderer / tls / server.key       -ORDERER_GENERAL_TLS_CERTIFICATE = / etc / hyperledger / crypto / orderer / tls / server.crt       -ORDERER_GENERAL_TLS_ROOTCAS = [/ etc / hyperledger / crypto / orderer / tls / ca.crt,/ etc / hyperledger / crypto / peerOrg1 / tls / ca.crt]     working_dir:/opt/gopath/src/github.com/hyperledger/fabric/orderers     命令:订购者     端口:       -7050:7050     数量:         -./channel:/etc/hyperledger/configtx         -./channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/crypto/orderer         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/crypto/peerOrg1         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/:/etc/hyperledger/crypto/peerOrg1         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/:/etc/hyperledger/crypto/peerOrg1         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer3.org1.example.com/:/etc/hyperledger/crypto/peerOrg1         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer4.org1.example.com/:/etc/hyperledger/crypto/peerOrg1     网络:       -balance_2

peer0.org1.example.com:     container_name:peer0.org1.example.com     扩展:       文件:base.yaml       服务:同辈     环境:       -CORE_PEER_ID = peer0.org1.example.com       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_ADDRESS = peer0.org1.example.com:7051       -CORE_PEER_GOSSIP_BOOTSTRAP = peer0.org1.example.com:7051
      -CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer0.org1.example.com:7051     端口:       -7051:7051       -7053:7053     数量:         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/crypto/peer     取决于:       -orderer.example.com       -长沙发     网络:       -balance_2

peer1.org1.example.com:     container_name:peer1.org1.example.com     扩展:       文件:base.yaml       服务:同辈     环境:       -CORE_PEER_ID = peer1.org1.example.com       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_ADDRESS = peer1.org1.example.com:7051       -CORE_PEER_GOSSIP_BOOTSTRAP = peer1.org1.example.com:7051
      -CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer1.org1.example.com:7051     端口:       -7061:7051       -7068:7053     数量:         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/:/etc/hyperledger/crypto/peer     取决于:       -orderer.example.com       -长沙发     网络:       -balance_2

peer2.org1.example.com:     container_name:peer2.org1.example.com     扩展:       文件:base.yaml       服务:同辈     环境:       -CORE_PEER_ID = peer2.org1.example.com       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_ADDRESS = peer2.org1.example.com:7051       -CORE_PEER_GOSSIP_BOOTSTRAP = peer2.org1.example.com:7051
      -CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer2.org1.example.com:7051     端口:       -7071:7051       -7078:7053     数量:         -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer2.org1.example.com/:/etc/hyperledger/crypto/peer     取决于:       -orderer.example.com       -长沙发     网络:       -balance_2

peer3.org1.example.com:     container_name:peer3.org1.example.com     扩展:       文件:base.yaml       服务:同辈     环境:       -CORE_PEER_ID = peer3.org1.example.com       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_ADDRESS = peer3.org1.example.com:7051       -CORE_PEER_GOSSIP_BOOTSTRAP = peer3.org1.example.com:7051
      -CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer3.org1.example.com:7051     端口:       -7081:7051       -7088:7053     数量:       -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer3.org1.example.com/:/etc/hyperledger/crypto/peer     取决于:       -orderer.example.com       -长沙发     网络:       -balance_2

peer4.org1.example.com:     container_name:peer4.org1.example.com     扩展:       文件:base.yaml       服务:同辈     环境:       -CORE_PEER_ID = peer4.org1.example.com       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_ADDRESS = peer4.org1.example.com:7051       -CORE_PEER_GOSSIP_BOOTSTRAP = peer4.org1.example.com:7051
      -CORE_PEER_GOSSIP_EXTERNALENDPOINT = peer4.org1.example.com:7051     端口:       -7091:7051       -7098:7053     数量:       -./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer4.org1.example.com/:/etc/hyperledger/crypto/peer     取决于:       -orderer.example.com       -长沙发     网络:       -balance_2

couchdb:     container_name:couchdb     图片:hyperledger / fabric-couchdb     #填充COUCHDB_USER和COUCHDB_PASSWORD以设置管理员用户和密码     #用于CouchDB。这将阻止CouchDB在“管理方”模式下运行。     环境:       -COUCHDB_USER =       -COUCHDB_PASSWORD =     端口:       -5984:5984     网络:       -balance_2

cli:     container_name:cli     图片:hyperledger / fabric-tools     tty:是     环境:       -GOPATH = / opt / gopath       -CORE_VM_ENDPOINT = unix:///host/var/run/docker.sock       -CORE_LOGGING_LEVEL =信息       -CORE_PEER_ID = cli       -CORE_PEER_ADDRESS = peer0.org1.example.com:7051       -CORE_PEER_LOCALMSPID = Org1MSP       -CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp       -CORE_CHAINCODE_KEEPALIVE = 10     working_dir:/opt/gopath/src/github.com/hyperledger/fabric/peer     命令:/ bin / bash     数量:         -/ var / run /:/ host / var / run /         -./../chaincode/:/opt/gopath/src/github.com/         -./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/     取决于:         -orderer.example.com         -peer0.org1.example.com         -peer1.org1.example.com         -peer2.org1.example.com         -peer3.org1.example.com         -peer4.org1.example.com         -长沙发     网络:       -balance_2

0 个答案:

没有答案