mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-20 00:25:09 +00:00
Update with Java Contract Change-Id: I1a70473f038576d741c8c9ac83e527b5e51e88ca Signed-off-by: Matthew B. White <whitemat@uk.ibm.com> [FAB-15213] Update Commercial Paper for Java Change-Id: Ie116962a6c3952e52269323492f5f292e9b65e95 Signed-off-by: Matthew B. White <whitemat@uk.ibm.com>
29 lines
633 B
Bash
Executable file
29 lines
633 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 )"
|
|
|
|
cd "${DIR}/../basic-network/"
|
|
|
|
docker kill cliDigiBank cliMagnetoCorp logspout || true
|
|
./teardown.sh || true
|
|
./start.sh || _exit "Failed to start Fabric"
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------
|
|
#
|
|
# Good to start the applications in other terminals
|
|
#
|
|
"${DIR}/organization/magnetocorp/configuration/cli/monitordocker.sh" net_basic
|