mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* WIP Commercial Paper -> Test network Signed-off-by: Matthew B White <whitemat@uk.ibm.com> * Update Commercial Paper to v2.0 lifecycle - move to using the test-network - updating README.md to include commands to use v2.0 lifecylce - update Contracts and Applications to use 2.0 libraries Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
26 lines
467 B
Bash
Executable file
26 lines
467 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
function _exit(){
|
|
printf "Exiting:%s\n" "$1"
|
|
exit -1
|
|
}
|
|
|
|
# Exit on first error, print all commands.
|
|
set -ev
|
|
set -o pipefail
|
|
|
|
# Where am I?
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
|
|
|
export FABRIC_CFG_PATH="${DIR}/../config"
|
|
|
|
cd "${DIR}/../test-network/"
|
|
|
|
docker kill cliDigiBank cliMagnetoCorp logspout || true
|
|
./network.sh down
|
|
|
|
# remove any stopped containers
|
|
docker rm $(docker ps -aq)
|
|
|