Skip to content

Commit 17820e3

Browse files
committed
[FAB-15715] Fix and clean up dev-mode instructions
This patch fixes instructions for dev-mode. For the commands to start the chaincode to work properly, this patch modifies the commands. - bash -> sh (Alpine does not contain bash) - Use peer.address flag (instead of the unused env var after FAB-14770) - Add CORE_PEER_TLS_ENABLED=false (dev-mode is for non-TLS mode only) Also, this patch removes the orphan page. FAB-15715 #done Change-Id: I956f526dcee47774cd0a93c63eb7023deb73142a Signed-off-by: Tatsuya Sato <Tatsuya.Sato@hal.hitachi.com>
1 parent 37d7130 commit 17820e3

File tree

2 files changed

+8
-120
lines changed

2 files changed

+8
-120
lines changed

docs/source/chaincode4ade.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -442,31 +442,33 @@ one for the chaincode environment and a CLI to interact with the chaincode. The
442442
commands for create and join channel are embedded in the CLI container, so we
443443
can jump immediately to the chaincode calls.
444444

445+
- Note: the peer is not using TLS because the dev mode does not work with TLS.
446+
445447
Terminal 2 - Build & start the chaincode
446448
----------------------------------------
447449

448450
.. code:: bash
449451
450-
docker exec -it chaincode bash
452+
docker exec -it chaincode sh
451453
452454
You should see the following:
453455

454-
.. code:: bash
456+
.. code:: sh
455457
456-
root@d2629980e76b:/opt/gopath/src/chaincode#
458+
/opt/gopath/src/chaincode $
457459
458460
Now, compile your chaincode:
459461

460-
.. code:: bash
462+
.. code:: sh
461463
462464
cd sacc
463465
go build
464466
465467
Now run the chaincode:
466468

467-
.. code:: bash
469+
.. code:: sh
468470
469-
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc
471+
CORE_CHAINCODE_ID_NAME=mycc:0 CORE_PEER_TLS_ENABLED=false ./sacc -peer.address peer:7052
470472
471473
The chaincode is started with peer and chaincode logs indicating successful registration with the peer.
472474
Note that at this stage the chaincode is not associated with any channel. This is done in subsequent steps

docs/source/peer-chaincode-devmode.rst

-114
This file was deleted.

0 commit comments

Comments
 (0)