fabric-samples/off_chain_data/startFabric.sh
Nikhil Gupta 2e4a3275ce add full path to off chain data sample
Signed-off-by: Nikhil Gupta <ngupta@symbridge.com>
2020-12-14 10:33:11 -05:00

24 lines
476 B
Bash
Executable file

#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error
set -e pipefail
starttime=$(date +%s)
# launch network; create channel and join peer to channel
pushd ../test-network
./network.sh down
./network.sh up createChannel -ca -s couchdb
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go/ -ccl go
popd
cat <<EOF
Total setup execution time : $(($(date +%s) - starttime)) secs ...
EOF