mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Merge "[FAB-15723] Fix script and instruction with ccenv" into release-1.4
This commit is contained in:
commit
3429e22a9e
2 changed files with 6 additions and 6 deletions
|
|
@ -74,24 +74,24 @@ Terminal 2 - Build & start the chaincode
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
docker exec -it chaincode bash
|
docker exec -it chaincode sh
|
||||||
|
|
||||||
You should see the following:
|
You should see the following:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: sh
|
||||||
|
|
||||||
root@d2629980e76b:/opt/gopath/src/chaincode#
|
/opt/gopath/src/chaincode $
|
||||||
|
|
||||||
Now, compile your chaincode:
|
Now, compile your chaincode:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: sh
|
||||||
|
|
||||||
cd chaincode_example02/go
|
cd chaincode_example02/go
|
||||||
go build -o chaincode_example02
|
go build -o chaincode_example02
|
||||||
|
|
||||||
Now run the chaincode:
|
Now run the chaincode:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: sh
|
||||||
|
|
||||||
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02
|
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ services:
|
||||||
- CORE_PEER_LOCALMSPID=DEFAULT
|
- CORE_PEER_LOCALMSPID=DEFAULT
|
||||||
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp
|
||||||
working_dir: /opt/gopath/src/chaincode
|
working_dir: /opt/gopath/src/chaincode
|
||||||
command: /bin/bash -c 'sleep 6000000'
|
command: /bin/sh -c 'sleep 6000000'
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/:/host/var/run/
|
- /var/run/:/host/var/run/
|
||||||
- ./msp:/etc/hyperledger/msp
|
- ./msp:/etc/hyperledger/msp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue