mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
eliminate the noise of echoing the environment variables for each command and add -v option to enable the noise for debug purposes for byfn.sh and eyfn.sh in first-network sample also eliminate noise in fabcar Change-Id: I46c377360efbab598fd37c0a31b29a119b99173e Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
20 lines
468 B
Bash
Executable file
20 lines
468 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Copyright IBM Corp All Rights Reserved
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Exit on first error, print all commands.
|
|
set -e
|
|
|
|
# Shut down the Docker containers for the system tests.
|
|
docker-compose -f docker-compose.yml kill && docker-compose -f docker-compose.yml down
|
|
|
|
# remove the local state
|
|
rm -f ~/.hfc-key-store/*
|
|
|
|
# remove chaincode docker images
|
|
docker rm $(docker ps -aq)
|
|
docker rmi $(docker images dev-* -q)
|
|
|
|
# Your system is now clean
|