Split scripts
parent
d4d13fa062
commit
cb4a9e0d93
|
@ -27,6 +27,6 @@ docker pull yeasy/hyperledger-fabric:0.6-dp \
|
|||
&& docker tag yeasy/hyperledger-fabric-base:0.6-dp hyperledger/fabric-baseimage \
|
||||
&& docker tag yeasy/hyperledger-fabric:0.6-dp hyperledger/fabric-membersrvc
|
||||
|
||||
cd 0.6/pbft && docker-compose -f 4-peers.yml up
|
||||
cd pbft && docker-compose -f 4-peers.yml up
|
||||
|
||||
#test: curl HOST:5000/network/peers
|
|
@ -0,0 +1,23 @@
|
|||
#! /bin/bash
|
||||
|
||||
ARCH=x86_64
|
||||
BASE_VERSION=1.0.0-preview
|
||||
PROJECT_VERSION=1.0.0-preview
|
||||
IMG_VERSION=0.9.2
|
||||
|
||||
echo "Downloading images from DockerHub..."
|
||||
|
||||
docker pull yeasy/hyperledger-fabric-base:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-peer:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-orderer:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-ca:$IMG_VERSION
|
||||
|
||||
# Only useful for debugging
|
||||
# docker pull yeasy/hyperledger-fabric
|
||||
|
||||
echo "Rename images with official tags..."
|
||||
docker tag yeasy/hyperledger-fabric-peer:$IMG_VERSION hyperledger/fabric-peer \
|
||||
&& docker tag yeasy/hyperledger-fabric-orderer:$IMG_VERSION hyperledger/fabric-orderer \
|
||||
&& docker tag yeasy/hyperledger-fabric-ca:$IMG_VERSION hyperledger/fabric-ca \
|
||||
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-ccenv:$ARCH-$BASE_VERSION \
|
||||
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-baseos:$ARCH-$BASE_VERSION
|
|
@ -0,0 +1,22 @@
|
|||
#! /bin/bash
|
||||
|
||||
if [ xroot != x$(whoami) ]
|
||||
then
|
||||
echo "You must run as root (Hint: sudo su)"
|
||||
exit
|
||||
fi
|
||||
|
||||
apt-get update && apt-get install curl -y
|
||||
|
||||
echo "Install Docker..."
|
||||
|
||||
wget -qO- https://get.docker.com/ | sh
|
||||
sudo service docker stop
|
||||
nohup sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock&
|
||||
|
||||
echo "Install Docker-Compose..."
|
||||
|
||||
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
|
|
@ -1,36 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
COMPOSE_FILE=${1:-"docker-compose.yml"}
|
||||
|
||||
if [ xroot != x$(whoami) ]
|
||||
then
|
||||
echo "You must run as root (Hint: sudo su)"
|
||||
exit
|
||||
fi
|
||||
bash ./setup_Docker.sh
|
||||
|
||||
apt-get update
|
||||
bash ./download_images.sh
|
||||
|
||||
apt-get install curl -y
|
||||
echo "Start up with ${COMPOSE_FILE}"
|
||||
|
||||
wget -qO- https://get.docker.com/ | sh
|
||||
sudo service docker stop
|
||||
nohup sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock&
|
||||
|
||||
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
|
||||
ARCH=x86_64
|
||||
BASE_VERSION=1.0.0-preview
|
||||
PROJECT_VERSION=1.0.0-preview
|
||||
IMG_VERSION=0.8.9
|
||||
docker pull yeasy/hyperledger-fabric-base:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-peer:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-orderer:$IMG_VERSION \
|
||||
&& docker pull yeasy/hyperledger-fabric-ca:$IMG_VERSION \
|
||||
&& docker pull yeasy/blockchain-explorer:latest \
|
||||
&& docker tag yeasy/hyperledger-fabric-peer:$IMG_VERSION hyperledger/fabric-peer \
|
||||
&& docker tag yeasy/hyperledger-fabric-orderer:$IMG_VERSION hyperledger/fabric-orderer \
|
||||
&& docker tag yeasy/hyperledger-fabric-ca:$IMG_VERSION hyperledger/fabric-ca \
|
||||
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-ccenv:$ARCH-$BASE_VERSION \
|
||||
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-baseos:$ARCH-$BASE_VERSION
|
||||
docker-compose up
|
||||
docker-compose -f ${COMPOSE_FILE} up -d
|
||||
|
|
Loading…
Reference in New Issue