mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Fix test network bugs for adding org3
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
This commit is contained in:
parent
66ac1adcdf
commit
73267e1f7f
7 changed files with 20 additions and 19 deletions
|
|
@ -35,7 +35,7 @@ function printHelp () {
|
||||||
echo "Typically, one would first generate the required certificates and "
|
echo "Typically, one would first generate the required certificates and "
|
||||||
echo "genesis block, then bring up the network. e.g.:"
|
echo "genesis block, then bring up the network. e.g.:"
|
||||||
echo
|
echo
|
||||||
echo " eyfn.sh generate"
|
echo " addOrg3.sh generate"
|
||||||
echo " addOrg3.sh up -c mychannel -s couchdb"
|
echo " addOrg3.sh up -c mychannel -s couchdb"
|
||||||
echo " addOrg3.sh up -l node"
|
echo " addOrg3.sh up -l node"
|
||||||
echo " addOrg3.sh down -c mychannel"
|
echo " addOrg3.sh down -c mychannel"
|
||||||
|
|
@ -175,22 +175,10 @@ IMAGETAG="latest"
|
||||||
DATABASE="leveldb"
|
DATABASE="leveldb"
|
||||||
|
|
||||||
# Parse commandline args
|
# Parse commandline args
|
||||||
if [ "$1" = "-m" ];then # supports old usage, muscle memory is powerful!
|
|
||||||
shift
|
MODE=$1;
|
||||||
fi
|
shift
|
||||||
MODE=$1;shift
|
|
||||||
# Determine whether starting, stopping, restarting or generating for announce
|
|
||||||
if [ "$MODE" == "up" ]; then
|
|
||||||
echo ="Add org3 to channel '${CHANNEL_NAME}' with '${CLI_TIMEOUT}' seconds and CLI delay of '${CLI_DELAY}' seconds and using database '${DATABASE}'"
|
|
||||||
echo
|
|
||||||
elif [ "$MODE" == "down" ]; then
|
|
||||||
EXPMODE="Stopping network"
|
|
||||||
elif [ "$MODE" == "generate" ]; then
|
|
||||||
EXPMODE="Generating certs and organization definition for Org3"
|
|
||||||
else
|
|
||||||
printHelp
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
while getopts "h?c:t:d:f:s:l:i:v" opt; do
|
while getopts "h?c:t:d:f:s:l:i:v" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
h|\?)
|
h|\?)
|
||||||
|
|
@ -214,6 +202,19 @@ while getopts "h?c:t:d:f:s:l:i:v" opt; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Determine whether starting, stopping, restarting or generating for announce
|
||||||
|
if [ "$MODE" == "up" ]; then
|
||||||
|
echo "Add Org3 to channel '${CHANNEL_NAME}' with '${CLI_TIMEOUT}' seconds and CLI delay of '${CLI_DELAY}' seconds and using database '${DATABASE}'"
|
||||||
|
echo
|
||||||
|
elif [ "$MODE" == "down" ]; then
|
||||||
|
EXPMODE="Stopping network"
|
||||||
|
elif [ "$MODE" == "generate" ]; then
|
||||||
|
EXPMODE="Generating certs and organization definition for Org3"
|
||||||
|
else
|
||||||
|
printHelp
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#Create the network using docker compose
|
#Create the network using docker compose
|
||||||
if [ "${MODE}" == "up" ]; then
|
if [ "${MODE}" == "up" ]; then
|
||||||
networkUp
|
networkUp
|
||||||
|
|
@ -435,9 +435,9 @@ COMPOSE_FILE_COUCH=docker/docker-compose-couch.yaml
|
||||||
# certificate authorities compose file
|
# certificate authorities compose file
|
||||||
COMPOSE_FILE_CA=docker/docker-compose-ca.yaml
|
COMPOSE_FILE_CA=docker/docker-compose-ca.yaml
|
||||||
# use this as the docker compose couch file for org3
|
# use this as the docker compose couch file for org3
|
||||||
COMPOSE_FILE_COUCH_ORG3=add-org3/docker/docker-compose-couch-org3.yaml
|
COMPOSE_FILE_COUCH_ORG3=addOrg3/docker/docker-compose-couch-org3.yaml
|
||||||
# use this as the default docker-compose yaml definition for org3
|
# use this as the default docker-compose yaml definition for org3
|
||||||
COMPOSE_FILE_ORG3=add-org3/docker/docker-compose-org3.yaml
|
COMPOSE_FILE_ORG3=addOrg3/docker/docker-compose-org3.yaml
|
||||||
#
|
#
|
||||||
# use golang as the default language for chaincode
|
# use golang as the default language for chaincode
|
||||||
CC_RUNTIME_LANGUAGE=golang
|
CC_RUNTIME_LANGUAGE=golang
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue