You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry picked from fac2d2e
clean up video format
change Fabric to fabric
starter kit typos and edits
[ci skip]
Change-Id: I78aa2a9ed2c1e79a18ebcf8a19f27964a5d48959
Signed-off-by: Nick Gaski <[email protected]>
Signed-off-by: Christopher Ferris <[email protected]>
The docker compose environment uses three docker images. Two are published to
50
-
DockerHub. However, the third, we provide you the source to build your own,
51
-
so that you can customize to inject your application code for development,
52
-
the following [Dockerfile](https://raw.githubusercontent.com/hyperledger/fabric/master/examples/sdk/node/Dockerfile)
49
+
The docker-compose environment uses three Docker images. Two are published to
50
+
DockerHub. However, with the third, we provide you the source to build your own,
51
+
so that you can customize it to inject your application code for development. The following [Dockerfile](https://raw.githubusercontent.com/hyperledger/fabric/master/examples/sdk/node/Dockerfile)
53
52
is used to build the base **fabric-starter-kit** image and may be used as
54
53
a starting point for your own customizations.
55
54
@@ -78,14 +77,14 @@ is located, execute one of following `docker-compose` commands.
78
77
docker-compose up
79
78
```
80
79
81
-
Both commands will start three docker containers, to view the container
82
-
status try `docker ps` command. The first time this is run the Docker
80
+
Both commands will start three Docker containers. To view the container
81
+
status use the `docker ps` command. The first time this is run, the Docker
83
82
images will be downloaded. This may take 10 minutes or more depending on the
84
83
network connections of the system running the command.
85
84
86
-
```
87
-
docker ps
88
-
```
85
+
```
86
+
docker ps
87
+
```
89
88
90
89
You should see something like the following:
91
90
@@ -101,34 +100,34 @@ Node.js application is located.
101
100
102
101
**note:** Be sure to wait 20 seconds after starting the network using the
103
102
`docker-compose up` command before executing the following command to allow
104
-
the network to initialize.
103
+
the network to initialize:
105
104
106
105
```
107
106
docker exec -it starter /bin/bash
108
107
```
109
108
110
109
* From the terminal session in the **starter** container execute the standalone
111
-
Node.js application. The docker terminal session should be in the working
110
+
Node.js application. The Docker terminal session should be in the working
112
111
directory of the sample application called **app.js** (*/opt/gopath/src/github.com/hyperledger/fabric/examples/sdk/node*). Execute
113
-
the following Node.js command to run the application.
112
+
the following Node.js command to run the application:
114
113
115
114
```
116
115
node app
117
116
```
118
117
In another terminal session on the host you can view the logs for the peer
119
118
by executing the following command (not in the docker shell above, in a new
120
-
terminal session of the real system)
119
+
terminal session of the real system):
121
120
122
121
```
123
122
docker logs peer
124
123
```
125
124
126
-
* If you wish to run your own Node.js application using the pre build docker
125
+
* If you wish to run your own Node.js application using the pre-built Docker
127
126
images:
128
127
* use the directories in the `volumes` tag under **starter** in the
129
128
`docker-compose.yml` file as a place to store your programs from the host
130
129
system into the docker container. The first path is the top level system
131
-
(host system) and the second is created in the docker container. If you wish
130
+
(host system) and the second is created in the Docker container. If you wish
132
131
to use a host location that is not under the `/Users` directory (`~` is
133
132
under `/Users') then you must add that to the Docker file sharing
134
133
under Docker preferences.
@@ -139,18 +138,18 @@ images:
139
138
```
140
139
* copy or create and edit your application in the `~/mytest` directory as
141
140
stated in the `docker-compose.yml``volumes` tag under **starter** container.
142
-
* run npm to install Hyperledger Fabric Node.js SDK in the `mytest` directory
141
+
* run npm to install Hyperledger fabric Node.js SDK in the `mytest` directory:
0 commit comments