Skip to content

Commit c01fa7c

Browse files
FAB-4246 separate out prereqs
create a separate doc page for prereqs and link from other parts of the doc. add CCBY 4.0 to changed files address gari's comment address inconsistent comment about go version Change-Id: I7b044b5d29250d905fba1243a0719ba32e3dc6e6 Signed-off-by: Christopher Ferris <[email protected]>
1 parent ff9e5c6 commit c01fa7c

File tree

5 files changed

+118
-40
lines changed

5 files changed

+118
-40
lines changed

docs/source/CONTRIBUTING.rst

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ First things first, please review the Hyperledger Project's `Code of
88
Conduct <https://wiki.hyperledger.org/community/hyperledger-project-code-of-conduct>`__
99
before participating. It is important that we keep things civil.
1010

11+
Install prerequisites
12+
---------------------
13+
14+
Before we begin, if you haven't already done so, you may wish to check that
15+
you have all the :doc:`prerequisites <prereqs>` installed on the platform(s)
16+
on which you'll be developing blockchain applications and/or operating
17+
Hyperledger Fabric.
18+
1119
Getting a Linux Foundation account
1220
----------------------------------
1321

docs/source/_templates/layout.html

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<br>
55
<a href="https://chat.hyperledger.org">Rocket Chat</a> <a href="https://jenkins.hyperledger.org/">CI</a>
66
<a href="http://stackoverflow.com/questions/tagged/hyperledger-fabric">StackOverflow</a>
7+
<br>
8+
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
9+
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a>
10+
<br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
711
{% endblock %}

docs/source/getting_started.rst

+25-40
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,35 @@
11
Getting Started
22
===============
33

4-
.. note:: These instructions have been verified to work against the version "1.0.0-alpha2" tagged docker
5-
images and the pre-compiled setup utilities within the supplied tarball file.
6-
If you run these commands with images or tools from the current master
7-
branch, it is possible that you will see configuration and panic errors.
4+
.. note:: These instructions have been verified to work against the
5+
version "1.0.0-alpha2" tagged docker images and the pre-compiled
6+
setup utilities within the supplied tarball file. If you run
7+
these commands with images or tools from the current master
8+
branch, it is possible that you will see configuration and panic
9+
errors.
810

911
The getting started scenario provisions a sample Fabric network consisting of
10-
two organizations, each maintaining two peers, and a "solo" ordering service.
12+
two organizations, each maintaining two peer nodes, and a "solo" ordering
13+
service.
1114

12-
Prior to launching the network, we will demonstrate the usage of two fundamental tools
13-
which are necessary to create a functioning transactional network with digital
14-
signature validation and access control:
15+
Install prerequisites
16+
---------------------
1517

16-
- cryptogen - generates the x509 certificates AND keys used to identify and
17-
authenticate the various components in the network.
18-
- `configtxgen <https://github.com/hyperledger/fabric/blob/master/docs/source/configtxgen.rst>`__ -
19-
generates the requisite configuration artifacts for orderer bootstrap and
20-
channel creation.
21-
22-
Each tool consumes a configuration yaml file, within which we specify the topology
23-
of our network (cryptogen) and the location of our certificates for various
24-
configuration operations (configtxgen). Once the tools have been successfully run,
25-
we are able to launch our network. More detail on the tools and the structure of
26-
the network will be provided later in this document. For now, let's get going...
27-
28-
Prerequisites and setup
29-
-----------------------
30-
31-
- `Docker <https://www.docker.com/products/overview>`__ - v1.12 or higher
32-
- `Docker Compose <https://docs.docker.com/compose/overview/>`__ - v1.8 or higher
33-
- `Docker Toolbox <https://docs.docker.com/toolbox/toolbox_install_windows/>`__ - Windows users only
34-
- `Go <https://golang.org/>`__ - 1.7 or higher
35-
36-
On Windows machines you will also need the following which provides a better alternative to the Windows command prompt:
37-
38-
- `Git Bash <https://git-scm.com/downloads>`__
39-
- `make for MinGW <http://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.82.90-cvs/make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma>`__ to be added to Git Bash
18+
Before we begin, if you haven't already done so, you may wish to check that
19+
you have all the :doc:`prereqs` installed on the platform(s)
20+
on which you'll be developing blockchain applications and/or operating
21+
Hyperledger Fabric.
4022

4123
Download the artifacts and binaries & pull the docker images
4224
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4325

44-
.. note:: If you are running on Windows you will want to make use of your Git
45-
Bash shell for the upcoming terminal commands.
26+
.. note:: If you are running on Windows you will want to make use of the ``Git
27+
Bash shell`` extension for the upcoming terminal commands. Visit the
28+
:doc:`prereqs` if you haven't previously installed
29+
it.
4630

47-
- Download the `cURL <https://curl.haxx.se/download.html>`__ tool if not already installed.
48-
- Determine a location on your machine where you want to place the artifacts and binaries.
31+
Determine a location on your machine where you want to place the artifacts
32+
and binaries.
4933

5034
.. code:: bash
5135
@@ -63,7 +47,7 @@ extract all of the necessary artifacts to set up your network and place them
6347
into a folder named ``release``.
6448

6549
It also retrieves the two platform-specific binaries - ``cryptogen`` and
66-
``configtxgen`` - which are briefly described above. Finally, the script will
50+
``configtxgen`` - which we'll use later. Finally, the script will
6751
download the Hyperledger Fabric docker images into your local Docker registry.
6852

6953
The script lists out the docker images upon conclusion. You should see the
@@ -112,9 +96,10 @@ and requirements to build a fully-functional Fabric.
11296
Crypto Generator
11397
----------------
11498

115-
We will use the cryptogen tool to generate the cryptographic material (x509 certs)
116-
for our various network entities. The certificates are based on a standard PKI
117-
implementation where validation is achieved by reaching a common trust anchor.
99+
We will use the ``cryptogen`` tool to generate the cryptographic material
100+
(x509 certs) for our various network entities. The certificates are based on
101+
a standard PKI implementation where validation is achieved by reaching a
102+
common trust anchor.
118103

119104
How does it work?
120105
^^^^^^^^^^^^^^^^^

docs/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Before diving in, watch how Fabric is `Building a Blockchain for Business
3434
:maxdepth: 2
3535
:caption: Getting Started
3636

37+
prereqs
3738
getting_started
3839

3940
.. toctree::

docs/source/prereqs.rst

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
Prerequisites
2+
=============
3+
4+
Install cURL
5+
------------
6+
7+
Download the `cURL <https://curl.haxx.se/download.html>`__ tool if not
8+
already installed.
9+
10+
Docker and Docker Compose
11+
-------------------------
12+
13+
You will need the following installed on the platform on which you will be
14+
operating, or developing on (or for), Hyperledger Fabric:
15+
16+
- MacOSX, *nix, or Windows 10: `Docker <https://www.docker.com/products/overview>`__
17+
v1.12 or greater is required.
18+
- Older versions of Windows: `Docker
19+
Toolbox <https://docs.docker.com/toolbox/toolbox_install_windows/>`__ -
20+
again, Docker version v1.12 or greater is required.
21+
22+
You can check the version of Docker you have installed with the following
23+
command from a terminal prompt:
24+
25+
.. code:: bash
26+
27+
docker --version
28+
29+
.. note:: Installing Docker for Mac or Windows, or Docker Toolbox will also
30+
install Docker Compose. If you already had Docker installed, you
31+
should check that you have Docker Compose version 1.8 or greater
32+
installed. If not, we recommend that you install a more recent
33+
version of Docker.
34+
35+
You can check the version of Docker Compose you have installed with the
36+
following command from a terminal prompt:
37+
38+
.. code:: bash
39+
40+
docker-compose --version
41+
42+
Go Programming Language
43+
-----------------------
44+
45+
Hyperledger Fabric uses the Go programming language 1.7.x for many of its
46+
components.
47+
48+
.. note: Go version 1.8.x will yield test failures
49+
50+
- `Go <https://golang.org/>`__ - version 1.7.x
51+
52+
Node.js Runtime and NPM
53+
-----------------------
54+
55+
If you will be developing applications for Hyperledger Fabric leveraging the
56+
Fabric SDK for Node.js, you will need to have version 6.9.x of Node.js
57+
installed.
58+
59+
.. note:: Node.js version 7.x is not supported at this time.
60+
61+
- `Node.js <https://nodejs.org/en/download/>`__ - version 6.9.x or greater
62+
63+
.. note:: Installing Node.js will also install NPM, however it is recommended
64+
that you update the default version of NPM installed. You can upgrade
65+
the ``npm`` tool with the following command:
66+
67+
.. code:: bash
68+
69+
npm install npm@latest -g
70+
71+
Windows extras
72+
--------------
73+
74+
If you are developng on Windows, you may also need the following which
75+
provides a better alternative to the built-in Windows tools:
76+
77+
- `Git Bash <https://git-scm.com/downloads>`__
78+
- `make for MinGW <http://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.82.90-cvs/make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma>`__ to be added to Git Bash
79+
80+
.. Licensed under Creative Commons Attribution 4.0 International License

0 commit comments

Comments
 (0)