Skip to content

Commit 036ceec

Browse files
author
Srinivasan Muralidharan
committed
core.yaml MSPCONFIGPATH to def. to msp/sampleconfig
https://jira.hyperledger.org/browse/FAB-1873 sets MSPCONFIGPATH to the right default so non-docker envs will run. "peer" commands should be run from the directory which resolves "./msp/.." correctly. In standard fabric envs this should be "fabric/" directory Change-Id: I2af634baef3f82c8c93748f73d17ced18031496c Signed-off-by: Srinivasan Muralidharan <[email protected]>
1 parent 135d923 commit 036ceec

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

docs/docker-compose-channel.yml

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ services:
3636
- CORE_PEER_PROFILE_ENABLED=true
3737
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005
3838
- CORE_PEER_GOSSIP_ORGLEADER=true
39+
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/sampleconfig
3940
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
4041
ports:
4142
- 7051:7051
@@ -64,6 +65,7 @@ services:
6465
- CORE_PEER_ENDORSER_ENABLED=true
6566
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005
6667
- CORE_PEER_ADDRESS=peer0:7051
68+
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/sampleconfig
6769
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
6870
command: /bin/sh
6971
links:

peer/core.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ peer:
149149
fileSystemPath: /var/hyperledger/production
150150

151151
# Path on the file system where peer will find MSP local configurations
152-
mspConfigPath: /etc/hyperledger/fabric/msp/sampleconfig
152+
mspConfigPath: msp/sampleconfig
153153

154154
# Used with Go profiling tools only in none production environment. In
155155
# production, it should be disabled (eg enabled: false)

unit-test/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ vp:
55
- 7051
66
environment:
77
- CORE_PEER_ADDRESSAUTODETECT=true
8+
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/sampleconfig
89
volumes:
910
- /var/run/docker.sock:/var/run/docker.sock
1011

0 commit comments

Comments
 (0)