Update with new unique docker image
parent
fd0c327de0
commit
4293e017af
|
@ -9,12 +9,13 @@ $ bash setupPbft.sh
|
||||||
## Download Images
|
## Download Images
|
||||||
If you want to start it manually, follow the steps:
|
If you want to start it manually, follow the steps:
|
||||||
|
|
||||||
First, pull necessary images first.
|
First, pull necessary images first. You can ignore this step if pulling official image already.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker pull yeasy/hyperledger:latest && docker tag yeasy/hyperledger:latest hyperledger/fabric-baseimage:latest
|
$ docker pull yeasy/hyperledger-fabric:latest
|
||||||
$ docker pull yeasy/hyperledger-peer:latest
|
$ docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-peer:latest
|
||||||
$ docker pull yeasy/hyperledger-membersrvc:latest
|
$ docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-baseimage:latest
|
||||||
|
$ docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-membersrvc:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start 4 Noops node cluster
|
### Start 4 Noops node cluster
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# https://github.com/yeasy/docker-compose-files
|
# https://github.com/yeasy/docker-compose-files
|
||||||
|
|
||||||
membersrvc:
|
membersrvc:
|
||||||
image: yeasy/hyperledger-membersrvc:latest
|
image: hyperledger/fabric-membersrvc:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- "7054"
|
- "7054"
|
||||||
|
@ -36,7 +36,7 @@ vp0:
|
||||||
- CORE_PEER_PKI_TLSCA_PADDR=membersrvc:7054
|
- CORE_PEER_PKI_TLSCA_PADDR=membersrvc:7054
|
||||||
ports:
|
ports:
|
||||||
- "7050:7050"
|
- "7050:7050"
|
||||||
#- "7051:7051"
|
- "7051:7051"
|
||||||
links:
|
links:
|
||||||
- membersrvc
|
- membersrvc
|
||||||
command: sh -c "sleep 5; peer node start"
|
command: sh -c "sleep 5; peer node start"
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
# Notice that chaincode is executed inside docker in default net mode
|
# Notice that chaincode is executed inside docker in default net mode
|
||||||
# https://github.com/yeasy/docker-compose-files
|
# https://github.com/yeasy/docker-compose-files
|
||||||
|
|
||||||
# Depends on the yeasy/hyperledger-peer:noops image
|
# Depends on the hyperledger/fabric-peer image
|
||||||
|
|
||||||
# This utilizes the noops as consensus
|
# This utilizes the noops as consensus
|
||||||
# See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
|
# See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
|
||||||
|
|
||||||
vp:
|
vp:
|
||||||
image: yeasy/hyperledger-peer:latest
|
image: hyperledger/fabric-peer:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- CORE_PEER_ADDRESSAUTODETECT=true
|
- CORE_PEER_ADDRESSAUTODETECT=true
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# https://github.com/yeasy/docker-compose-files
|
# https://github.com/yeasy/docker-compose-files
|
||||||
|
|
||||||
membersrvc:
|
membersrvc:
|
||||||
image: yeasy/hyperledger-membersrvc:latest
|
image: hyperledger/fabric-membersrvc:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- "7054"
|
- "7054"
|
||||||
|
@ -29,7 +29,7 @@ vp0:
|
||||||
- CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT
|
- CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT
|
||||||
ports:
|
ports:
|
||||||
- "7050:7050"
|
- "7050:7050"
|
||||||
#- "7051:7051"
|
- "7051:7051"
|
||||||
links:
|
links:
|
||||||
- membersrvc
|
- membersrvc
|
||||||
command: sh -c "sleep 5; peer node start"
|
command: sh -c "sleep 5; peer node start"
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
# Notice that chaincode is executed inside docker in default net mode
|
# Notice that chaincode is executed inside docker in default net mode
|
||||||
# https://github.com/yeasy/docker-compose-files
|
# https://github.com/yeasy/docker-compose-files
|
||||||
|
|
||||||
# Depends on the yeasy/hyperledger-peer:pbft image
|
# Depends on the hyperledger/fabric-peer image.
|
||||||
|
|
||||||
# This utilized the pbft as consensus
|
# This utilized the pbft as consensus
|
||||||
# See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
|
# See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
|
||||||
|
|
||||||
vp:
|
vp:
|
||||||
image: yeasy/hyperledger-peer:latest
|
image: hyperledger/fabric-peer:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- CORE_PEER_ADDRESSAUTODETECT=true
|
- CORE_PEER_ADDRESSAUTODETECT=true
|
||||||
|
|
|
@ -19,9 +19,10 @@ curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose
|
||||||
chmod +x /usr/local/bin/docker-compose
|
chmod +x /usr/local/bin/docker-compose
|
||||||
docker-compose --version
|
docker-compose --version
|
||||||
|
|
||||||
docker pull yeasy/hyperledger:latest && docker tag yeasy/hyperledger:latest hyperledger/fabric-baseimage:latest
|
docker pull yeasy/hyperledger-fabric:latest \
|
||||||
docker pull yeasy/hyperledger-peer:latest
|
&& docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-peer:latest \
|
||||||
docker pull yeasy/hyperledger-membersrvc:latest
|
&& docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-baseimage:latest \
|
||||||
|
&& docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-membersrvc:latest
|
||||||
|
|
||||||
cd pbft
|
cd pbft
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
Loading…
Reference in New Issue