From a7be462ab4be18d93b375a6637d64518eecaa27f Mon Sep 17 00:00:00 2001 From: ratnakar Date: Mon, 6 Nov 2017 11:36:18 -0500 Subject: [PATCH] [FAB-6895] chaincode mounting issue Chaincode mount path has been corrected with this fix so that artifacts (ex. mychannel.block etc.,) won't be visible on the host machine and the cli container upon restart. Change-Id: I9b59c80d1cac3034d9cd7d9e19b2931df8b3988e Signed-off-by: ratnakar --- first-network/docker-compose-cli.yaml | 2 +- first-network/scripts/script.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/first-network/docker-compose-cli.yaml b/first-network/docker-compose-cli.yaml index 6b7d1ce9..f7053c01 100644 --- a/first-network/docker-compose-cli.yaml +++ b/first-network/docker-compose-cli.yaml @@ -70,7 +70,7 @@ services: command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME} ${DELAY} ${LANG}; sleep $TIMEOUT' volumes: - /var/run/:/host/var/run/ - - ./../chaincode/:/opt/gopath/src/github.com/ + - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts diff --git a/first-network/scripts/script.sh b/first-network/scripts/script.sh index 8b01f67a..8ba3546c 100755 --- a/first-network/scripts/script.sh +++ b/first-network/scripts/script.sh @@ -20,9 +20,9 @@ COUNTER=1 MAX_RETRY=5 ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -CC_SRC_PATH="github.com/chaincode_example02/go/" +CC_SRC_PATH="github.com/chaincode/chaincode_example02/go/" if [ "$LANGUAGE" = "node" ]; then - CC_SRC_PATH="/opt/gopath/src/github.com/chaincode_example02/node/" + CC_SRC_PATH="/opt/gopath/src/github.com/chaincode/chaincode_example02/node/" fi echo "Channel name : "$CHANNEL_NAME