Skip to content

Commit 8cb3057

Browse files
Jason YellickLuis Sanchez
Jason Yellick
authored and
Luis Sanchez
committed
[FAB-2257] Fix local orderer startup
https://jira.hyperledger.org/browse/FAB-2257 In fixing the orderer docker startup, the orderer.yaml file was modified to include the LocalMSPDir. This was required because without the variable in the yaml, the environment variable would not take effect. However, this orderer.yaml variable was incorrectly set to ../msp when it was being set as a default in code to ../msp/sampleconfig. This CR fixes that. Change-Id: I775b70a0d14d5a9b13ed71b71ef196a70748690a Signed-off-by: Jason Yellick <[email protected]>
1 parent 7559dd9 commit 8cb3057

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

images/testenv/Dockerfile.in

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM hyperledger/fabric-buildenv:_TAG_
33
# fabric configuration locations
44
ENV PEER_CFG_PATH /etc/hyperledger/fabric
55
ENV ORDERER_CFG_PATH /etc/hyperledger/fabric
6+
ENV CORE_PEER_MSPCONFIGPATH $PEER_CFG_PATH/msp/sampleconfig
7+
ENV ORDERER_GENERAL_LOCALMSPDIR $ORDERER_CFG_PATH/msp/sampleconfig
68

79
# create needed directories
810
RUN mkdir -p \

orderer/orderer.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ General:
5555
# LocalMSPDir is where to find the crypto material needed for signing in the orderer
5656
# It is set relative here as a default for dev environments but should be changed to the
5757
# real location in production
58-
LocalMSPDir: ../msp/
58+
LocalMSPDir: msp/sampleconfig
5959

6060
# LocalMSPID is the identity to register the local MSP material with the MSP manager
6161
# ----!!!!IMPORTANT!!!-!!!IMPORTANT!!!-!!!IMPORTANT!!!!----

0 commit comments

Comments
 (0)