fabric-samples/off_chain_data/network-clean.sh
2020-09-03 11:40:24 +00:00

29 lines
556 B
Bash
Executable file

#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error
set -ex
# Bring the test network down
pushd ../test-network
./network.sh down
popd
# clean out any old identites in the wallets
rm -rf wallet
rm -rf addMarbles.json mychannel_marbles.log mychannel__lifecycle.log nextblock.txt
pushd listener
docker-compose down
rm -rf wallet
rm -rf mychannel_marbles.log mychannel__lifecycle.log nextblock.txt
rm files/*
popd
docker network rm net_test
#docker stop offchaindb
#docker rm offchaindb