Skip to content

Commit 1774a25

Browse files
satota2Tatsuya Sato
authored and
Tatsuya Sato
committed
[FAB-15723] Fix script and instruction with ccenv
This patch fixes the script and instruction with the ccenv container. Running chaincode dev-mode fails because bash was removed from the ccenv by FAB-15670. This patch changes the command from /bin/bash to /bin/sh. FAB-15723 #done Change-Id: Ibf31ce9170e606988302bf46d8dac98b62e2043e Signed-off-by: Tatsuya Sato <Tatsuya.Sato@hal.hitachi.com>
1 parent 779f8f3 commit 1774a25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

chaincode-docker-devmode/README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,24 @@ Terminal 2 - Build & start the chaincode
7474

7575
.. code:: bash
7676
77-
docker exec -it chaincode bash
77+
docker exec -it chaincode sh
7878
7979
You should see the following:
8080

81-
.. code:: bash
81+
.. code:: sh
8282
83-
root@d2629980e76b:/opt/gopath/src/chaincode#
83+
/opt/gopath/src/chaincode $
8484
8585
Now, compile your chaincode:
8686

87-
.. code:: bash
87+
.. code:: sh
8888
8989
cd abstore/go
9090
go build -o abstore
9191
9292
Now run the chaincode:
9393

94-
.. code:: bash
94+
.. code:: sh
9595
9696
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./abstore
9797

chaincode-docker-devmode/docker-compose-simple.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ services:
7777
- CORE_PEER_LOCALMSPID=DEFAULT
7878
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp
7979
working_dir: /opt/gopath/src/chaincode
80-
command: /bin/bash -c 'sleep 6000000'
80+
command: /bin/sh -c 'sleep 6000000'
8181
volumes:
8282
- /var/run/:/host/var/run/
8383
- ./msp:/etc/hyperledger/msp

0 commit comments

Comments
 (0)