Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3954] /examples/cluster: add client config
We want to make it as easy as possible for a client to consume a fabric configuration. This patch adds a new output "build/client.config". This file is a YAML formatted structure that can be consumed by a client. It contains details specific to the cluster that was created, such as IP, port, protocols, principals, and key material. These files may be consumed by fabric clients, which we will take advantage of elsewhere. ----------------------------------------------------------- ca: url: http://172.18.0.2:7054 certificate: | -----BEGIN CERTIFICATE----- MIICLTCCA...... -----END CERTIFICATE----- orderer: grpc://172.18.0.3:7050 peers: - api: grpc://172.18.0.4:7051 events: grpc://172.18.0.4:7053 hostname: peer1 - api: grpc://172.18.0.7:7051 events: grpc://172.18.0.7:7053 hostname: peer2 - api: grpc://172.18.0.6:7051 events: grpc://172.18.0.6:7053 hostname: peer3 - api: grpc://172.18.0.5:7051 events: grpc://172.18.0.5:7053 hostname: peer4 identity: principal: Admin@org1.net mspid: Org1MSP privatekey: | -----BEGIN PRIVATE KEY----- MIGHAgEAM... -----END PRIVATE KEY----- certificate: | -----BEGIN CERTIFICATE----- MIICFjCCA... -----END CERTIFICATE----- ----------------------------------------------------------- Fixes FAB-3954 Change-Id: I96a20f57fc2a7502d8d132461dccb30e8da78c59 Signed-off-by: Greg Haskins <gregory.haskins@gmail.com>
- Loading branch information