IBM-Blockchain-Archive / marbles

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Apache License 2.0
1.03k stars 979 forks source link

shell startFabric.sh CC Not Find? #243

Closed BoBoGithub closed 5 years ago

BoBoGithub commented 5 years ago

2018-07-24 22-59-58

the $CC_SRC_PATH => github.com/fabcar/go

Can you tell me the $CC_SRC_PATH is where ?

I find this in cli sudo docker run hyperledger/fabric-tools ls -al but not find

Help me Thanks!

dshuffma-ibm commented 5 years ago

its here fabric-samples/chaincode/fabcar/go

BoBoGithub commented 5 years ago

@dshuffma-ibm Thanks!

But why? $CC_SRC_PATH => github.com/fabcar/go =?= fabric-samples/chaincode/fabcar/go

I don't find something relations in code.

dshuffma-ibm commented 5 years ago

Oh, I see what you mean now. I actually confused you here, forget my previous comment.

This path is for the peer process inside the docker container. It does not need to match your host machine's file structure. The peer image will contain the github.com/fabcar/go files.

BoBoGithub commented 5 years ago

@dshuffma-ibm Oh, I know, Thanks!

1. I look the peer image sudo docker run hyperledger/fabric-peer ls -al But not find the github.com/fabcar/go files, My idear is right?

I find the cc code of the fabcar in cli image peer, use cmd 
$ sudo docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli ls /opt/gopath/src/github.com/fabcar/go

2. I want to rewrite or update the cc code of the fabcar, How can I do?

     I try   update the cc of the fabcar in local  ->  docker cp local dest -> remove peer image and install
     It's run success!

@dshuffma-ibm Above two action, My idear is right?

dshuffma-ibm commented 5 years ago

update the cc of the fabcar in local -> docker cp local dest

I believe that's right, but I'm not really familiar with the setup of fabcar. Typically I can only help with marbles related questions.

BoBoGithub commented 5 years ago

@dshuffma-ibm Thanks, You are welcome.

Now I run the marbles app success, Then I will see the code around this.