Use version env variables
parent
5a4c6b09fe
commit
51d5b64e07
|
@ -22,16 +22,20 @@ If you're not familiar with Docker and Blockchain, can have a look at 2 books (i
|
||||||
Pull necessary images of peer, orderer, ca, and base image.
|
Pull necessary images of peer, orderer, ca, and base image.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker pull yeasy/hyperledger-fabric-base:0.8.1 \
|
$ ARCH=x86_64
|
||||||
&& docker pull yeasy/hyperledger-fabric-peer:0.8.1 \
|
$ BASE_VERSION=1.0.0-preview
|
||||||
&& docker pull yeasy/hyperledger-fabric-orderer:0.8.1 \
|
$ PROJECT_VERSION=1.0.0-preview
|
||||||
&& docker pull yeasy/hyperledger-fabric-ca:0.8.1 \
|
$ docker pull yeasy/hyperledger-fabric-base:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-peer:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-orderer:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-ca:0.8.2 \
|
||||||
&& docker pull yeasy/blockchain-explorer:latest \
|
&& docker pull yeasy/blockchain-explorer:latest \
|
||||||
&& docker tag yeasy/hyperledger-fabric-peer:0.8.1 hyperledger/fabric-peer \
|
&& docker tag yeasy/hyperledger-fabric-peer:0.8.2 hyperledger/fabric-peer \
|
||||||
&& docker tag yeasy/hyperledger-fabric-orderer:0.8.1 hyperledger/fabric-orderer \
|
&& docker tag yeasy/hyperledger-fabric-orderer:0.8.2 hyperledger/fabric-orderer \
|
||||||
&& docker tag yeasy/hyperledger-fabric-ca:0.8.1 hyperledger/fabric-ca \
|
&& docker tag yeasy/hyperledger-fabric-ca:0.8.2 hyperledger/fabric-ca \
|
||||||
&& docker tag yeasy/hyperledger-fabric-base:0.8.1 hyperledger/fabric-baseimage \
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-baseimage \
|
||||||
&& docker tag yeasy/hyperledger-fabric-base:0.8.1 hyperledger/fabric-ccenv:x86_64-1.0.0-snapshot-preview
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-ccenv:$ARCH-$BASE_VERSION \
|
||||||
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-bareos:$ARCH-$BASE_VERSION
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
|
|
|
@ -19,15 +19,19 @@ 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-fabric-base:latest \
|
ARCH=x86_64
|
||||||
&& docker pull yeasy/hyperledger-fabric-peer:latest \
|
BASE_VERSION=1.0.0-preview
|
||||||
&& docker pull yeasy/hyperledger-fabric-orderer:latest \
|
PROJECT_VERSION=1.0.0-preview
|
||||||
&& docker pull yeasy/hyperledger-fabric-ca:latest \
|
docker pull yeasy/hyperledger-fabric-base:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-peer:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-orderer:0.8.2 \
|
||||||
|
&& docker pull yeasy/hyperledger-fabric-ca:0.8.2 \
|
||||||
&& docker pull yeasy/blockchain-explorer:latest \
|
&& docker pull yeasy/blockchain-explorer:latest \
|
||||||
&& docker tag yeasy/hyperledger-fabric-peer hyperledger/fabric-peer \
|
&& docker tag yeasy/hyperledger-fabric-peer:0.8.2 hyperledger/fabric-peer \
|
||||||
&& docker tag yeasy/hyperledger-fabric-orderer hyperledger/fabric-orderer \
|
&& docker tag yeasy/hyperledger-fabric-orderer:0.8.2 hyperledger/fabric-orderer \
|
||||||
&& docker tag yeasy/hyperledger-fabric-ca hyperledger/fabric-ca \
|
&& docker tag yeasy/hyperledger-fabric-ca:0.8.2 hyperledger/fabric-ca \
|
||||||
&& docker tag yeasy/hyperledger-fabric-base hyperledger/fabric-baseimage \
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-baseimage \
|
||||||
&& docker tag yeasy/hyperledger-fabric-base hyperledger/fabric-ccenv:x86_64-1.0.0-snapshot-preview
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-ccenv:$ARCH-$BASE_VERSION \
|
||||||
|
&& docker tag yeasy/hyperledger-fabric-base:0.8.2 hyperledger/fabric-bareos:$ARCH-$BASE_VERSION
|
||||||
|
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
Loading…
Reference in New Issue