Skip to content

Commit

Permalink
fix: Update doc (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexhunter committed Feb 5, 2024
1 parent 161eff3 commit b9ad5f7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/source/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
TLDR, run a quick testing.

```bash
$ HLF_VERSION=1.4.6
$ export HLF_VERSION=1.4.12
$ export FABRIC_CA_VERSION=1.4.9
$ docker pull hyperledger/fabric-peer:${HLF_VERSION} \
&& docker pull hyperledger/fabric-orderer:${HLF_VERSION} \
&& docker pull hyperledger/fabric-ca:${HLF_VERSION} \
&& docker pull yeasy/hyperledger-fabric-ca:${FABRIC_CA_VERSION} \
&& docker pull hyperledger/fabric-ccenv:${HLF_VERSION}
$ docker-compose -f test/fixtures/docker-compose-2orgs-4peers-tls.yaml up
$ pip3 install virtualenv; make venv
Expand Down Expand Up @@ -45,12 +46,14 @@ If you already have a running fabric network, ignore this.
To start an example fabric network you can simply run the following commands:

```bash
$ HLF_VERSION=1.4.6
$ docker pull hyperledger/fabric-peer:${HLF_VERSION}
$ docker pull hyperledger/fabric-orderer:${HLF_VERSION}
$ docker pull hyperledger/fabric-ca:${HLF_VERSION}
$ export HLF_VERSION=1.4.12
$ export FABRIC_CA_VERSION=1.4.9
$ docker pull hyperledger/fabric-peer:${HLF_VERSION} \
$ docker pull hyperledger/fabric-orderer:${HLF_VERSION} \
$ docker pull yeasy/hyperledger-fabric-ca:${FABRIC_CA_VERSION} \
$ docker pull hyperledger/fabric-ccenv:${HLF_VERSION}
$ docker-compose -f test/fixtures/docker-compose-2orgs-4peers-tls.yaml up

```

Then you'll have a fabric network with 3 organizations, 4 peers and 1 orderer:
Expand All @@ -63,7 +66,7 @@ Then you'll have a fabric network with 3 organizations, 4 peers and 1 orderer:
* orderer.example.com
* orderer.example.com

* Note: make sure `configtxgen` is in the '$PATH'.
* Note: make sure `configtxgen` is in the '$PATH'. You can download the Fabric v1.4 binaries [here](https://github.com/hyperledger/fabric/releases/download/v1.4.12/hyperledger-fabric-darwin-amd64-1.4.12.tar.gz)

If you want to understand more details on starting up a fabric network, feel free to see the [Building Your First Network](https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html) tutorial.

Expand Down

0 comments on commit b9ad5f7

Please sign in to comment.