-
Notifications
You must be signed in to change notification settings - Fork 4
peer command environment
James Taylor edited this page Dec 19, 2019
·
3 revisions
The peer command requires a few environment variables to work: i.e. CORE_PEER_MSPCONFIGPATH, CORE_PEER_ADDRESS, CORE_PEER_LOCALMSPID, CORE_PEER_TLS_ROOTCERT_FILE.
Unfortunately these don't seem to be documented in the peer command reference, although they do get a mention in the Building Your First Network tutorial, and the Using the Fabric test network documentation. They also appear in the basic network docker-compose.yml file.
In the fabric-devenv Vagrant environment, prefixing peer commands with the following should work:
CORE_PEER_ADDRESS=0.0.0.0:7051 \
CORE_PEER_LOCALMSPID=Org1MSP \
CORE_PEER_MSPCONFIGPATH=/home/vagrant/test-network/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp \
peer ...