Score
0
Watch 47 Star 115 Fork 46

XUJF / fccGoApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
以不动产登记业务为例,开发基于超级账本fabric的政务数据共享区块链 spread retract

  • Go 56.6%
  • Vue 28.1%
  • Shell 13.3%
  • JavaScript 1.6%
  • HTML 0.4%
Clone or download
1-2.startNetwork.sh 1.00 KB
Copy Edit Web IDE Raw Blame History
#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error
set -e
# launch network; create channel and join peer to channel
function clearContainers () {
CONTAINER_IDS=$(docker ps -aq)
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
echo "---- No containers available for deletion ----"
else
docker rm -f $CONTAINER_IDS
fi
}
# Delete any images that were generated as a part of this setup
# specifically the following images are often left behind:
# TODO list generated image naming patterns
function removeUnwantedImages() {
DOCKER_IMAGE_IDS=$(docker images|awk '($1 ~ /dev-peer.*.example.*/) {print $3}')
if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then
echo "---- No images available for deletion ----"
else
docker rmi -f $DOCKER_IMAGE_IDS
fi
}
clearContainers
removeUnwantedImages
cd ../first-network
echo y | ./byfn.sh down
echo y | ./byfn.sh up -a -n -s couchdb
cd ../fcc
echo network started .

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/xujf/fcc.git
git@gitee.com:xujf/fcc.git
xujf
fcc
fcc
master

Help Search