github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/cli_test/clean-environment.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright Ziggurat Corp All Rights Reserved
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  set -e
     9  
    10  # Shut down the Docker containers for the system tests.
    11  docker-compose -f docker-compose.yml stop && docker-compose -f docker-compose.yml down
    12  
    13  # remove chaincode docker images
    14  docker rmi $(docker images dev-* -q)
    15  
    16  # Your system is now clean