Update instructions

pull/52/head
Baohua Yang 2017-06-01 11:15:41 +08:00
parent 7a0f2f7ba4
commit 2a2e4b13bc
4 changed files with 8 additions and 12 deletions

View File

@ -11,10 +11,12 @@ If you're not familiar with Docker and Blockchain, can have a look at 2 books (i
tldr :) tldr :)
With Ubuntu/Debian, you can simple use the following script to setup the environment in one instruction. With Ubuntu/Debian, you can simple use the following scripts to setup the environment and start the fabric network.
```sh ```sh
$ bash setup_fabric_1.0.sh $ bash scripts/setup_Docker.sh # Install Docker, Docker-Compose
bash scripts/download_images.sh # Pull required Docker images
bash scripts/start_fabric.sh
``` ```
If you want to setup the environment manually, then can follow the below steps in this section. If you want to setup the environment manually, then can follow the below steps in this section.
@ -24,7 +26,7 @@ If you want to setup the environment manually, then can follow the below steps i
Pull necessary images of peer, orderer, ca, and base image. Pull necessary images of peer, orderer, ca, and base image.
```sh ```sh
$ bash scripts/start_fabric.sh $ bash scripts/download_images.sh
``` ```
There are also some community [images](https://hub.docker.com/r/hyperledger/) at Dockerhub, use at your own choice. There are also some community [images](https://hub.docker.com/r/hyperledger/) at Dockerhub, use at your own choice.

View File

@ -45,7 +45,6 @@ services:
environment: environment:
- CORE_PEER_ID=peer0 - CORE_PEER_ID=peer0
- CORE_PEER_GOSSIP_ORGLEADER=true - CORE_PEER_GOSSIP_ORGLEADER=true
# - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer0:7050
links: links:
- orderer0 - orderer0
ports: ports:
@ -64,7 +63,6 @@ services:
- CORE_PEER_ID=cli - CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0:7051 - CORE_PEER_ADDRESS=peer0:7051
#- CORE_PEER_LOCALMSPID=Org0MSP #- CORE_PEER_LOCALMSPID=Org0MSP
#- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
links: links:
- peer0 - peer0
- orderer0 - orderer0

View File

@ -5,7 +5,7 @@ source ./header.sh
ARCH=x86_64 ARCH=x86_64
BASE_VERSION=1.0.0-preview BASE_VERSION=1.0.0-preview
PROJECT_VERSION=1.0.0-preview PROJECT_VERSION=1.0.0-preview
IMG_VERSION=0.9.3 IMG_VERSION=0.9.4
echo_b "Downloading images from DockerHub..." echo_b "Downloading images from DockerHub..."

View File

@ -1,12 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./header.sh source ./scripts/header.sh
COMPOSE_FILE=${1:-"docker-compose.yml"} COMPOSE_FILE=${1:-"docker-compose-2orgs.yml"}
bash ./setup_Docker.sh
bash ./download_images.sh
echo_b "Start up with ${COMPOSE_FILE}" echo_b "Start up with ${COMPOSE_FILE}"