Skip to content

Commit

Permalink
Split command in "add an org to network" tutorial
Browse files Browse the repository at this point in the history
The config block output from configtxlator is too large to pipe on Mac,
leading to "configtxlator: error: open /dev/stdout: permission denied, try --help".
Update the tutorial to split the command in two, using a
config_block.json for the configtxlator output instead.

FAB-17815 #done

Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
  • Loading branch information
wlahti authored and mergify[bot] committed Jan 7, 2021
1 parent eec9341 commit 36eec0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/channel_update_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ means of the ``jq`` tool:

.. code:: bash
configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json
configtxlator proto_decode --input config_block.pb --type common.Block --output config_block.json
jq .data.data[0].payload.data.config config_block.json > config.json
This command leaves us with a trimmed down JSON object -- ``config.json`` -- which
will serve as the baseline for our config update.
Expand Down Expand Up @@ -743,7 +744,8 @@ channel configuration.

.. code:: bash
configtxlator proto_decode --input config_block.pb --type common.Block | jq .data.data[0].payload.data.config > config.json
configtxlator proto_decode --input config_block.pb --type common.Block --output config_block.json
jq .data.data[0].payload.data.config config_block.json > config.json
The ``config.json`` is the now trimmed JSON representing the latest channel configuration
that we will update.
Expand Down

0 comments on commit 36eec0d

Please sign in to comment.