fabric-samples/off_chain_data/network-clean.sh

27 lines
526 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 stop offchaindb
docker rm offchaindb