Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Edx issue103 #105

Open
wants to merge 11 commits into
base: import-edx-content
Choose a base branch
from
21 changes: 3 additions & 18 deletions LFS171x/docs/introduction-to-hyperledger-fabric.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ $ curl -sSL https://goo.gl/6wtTN5 | bash -s 1.2.0

__**NOTE:**__ Check [http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries](http://hyperledger-fabric.readthedocs.io/en/release-1.1/samples.html#binaries) for the latest URL (the 'https://goo.gl/6wtTN5' in the above curl command) to pull in binaries.

This command downloads binaries for **cryptogen**, **configtxgen**, **configxlator**, **peer** AND downloads the Hyperledger Fabric Docker images. These assets are placed in a **bin** subdirectory of the current working directory.
This command downloads binaries for **cryptogen**, **configtxgen**, **configxlator**, **peer** AND downloads the Hyperledger Fabric Docker images. These assets are placed in the **fabric-samples/bin** subdirectory of the current working directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation says places them in the bin sub-directory of the current working directory.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started with an empty directory and called the command for the 1.3 version and I am still seeing the same behavior, where these binaries are appearing in fabric-samples/bin. Perhaps the reason is related to this error message that shows up right at the beginning, but doesn't seem to otherwise impact the rest of the example running "bash: line 181: [: too many arguments".

nathalie@nathalie-HP-EliteBook-8460p:~/Hyperledger/LFS171x/Fabric$ curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0
bash: line 181: [: too many arguments
...

Once everthing has finished running from that curl command above, an ls shows that the only thing in the current working directory is "fabric-samples"

nathalie@nathalie-HP-EliteBook-8460p:~/Hyperledger/LFS171x/Fabric$ ls
fabric-samples

I have to look in the bin subdirectory of fabric-samples:
nathalie@nathalie-HP-EliteBook-8460p:~/Hyperledger/LFS171x/Fabric$ ls fabric-samples/bin
configtxgen cryptogen fabric-ca-client idemixgen peer
configtxlator discover get-docker-images.sh orderer

This is on a Linux box running Ubuntu 16.04.


To confirm and see the list of Docker images you’ve just downloaded, run:

Expand All @@ -444,22 +444,6 @@ Swap out the 'x86_64-1.0.2' portion in the command example above with the tags y

In the screenshot above, the Docker images are already tagged. If this is the case for you, you do not need to do this extra step.

### Installing Hyperledger Fabric

As an additional measure, you may want to add the bin subdirectory to your PATH environment variable, so these can be picked up without needing to qualify the PATH to each binary. You can do this by running the following:

```
$ export PATH=$PWD/bin:$PATH
```

To install the Hyperledger Fabric sample code which will be used in the tutorials, do:

```
$ git clone https://github.com/hyperledger/fabric-samples.git

$ cd fabric-samples/first-network
```

### Starting a Test Hyperledger Fabric Network

Now that we have successfully installed Hyperledger Fabric, we can walk through setting up a simple network that has two members. To refer back to our demonstrated scenario, the network includes asset management of each tuna verified, transferred, and purchased between Sarah, the fisherman, and Miriam, the restaurateur. We’ll create a simple two member network consisting of two organizations (effectively, Sarah and Miriam), each maintaining two peers and an ordering service.
Expand All @@ -468,9 +452,10 @@ We will use Docker images to bootstrap our first Hyperledger Fabric network. It

### Getting Started with Your First Network

Are you ready to get started? Run this command ( within the **first-network** folder ):
Are you ready to get started? Run this command (within the folder where you have the fabric-samples repository cloned):

```
$ cd fabric-samples/first-network
$ ./byfn.sh -m generate
```

Expand Down