diff --git a/hyperledger_fabric/latest/Makefile b/hyperledger_fabric/latest/Makefile index 61db85cb..165b75d9 100644 --- a/hyperledger_fabric/latest/Makefile +++ b/hyperledger_fabric/latest/Makefile @@ -42,8 +42,6 @@ test: ready: # create/join channel, install/instantiate cc make stop - @echo "Make sure the local hlf_net docker bridge exists" - docker network ls|grep hlf_net > /dev/null || docker network create hlf_net # make clean_config_channel # Remove existing channel artifacts make gen_config_crypto # Will ignore if local config path exists @@ -91,6 +89,8 @@ restart: stop start start: # bootup the fabric network @echo "Start a fabric network with ${COMPOSE_FILE}..." @make clean + @echo "Make sure the local hlf_net docker bridge exists" + docker network ls|grep hlf_net > /dev/null || docker network create hlf_net @docker-compose -f ${COMPOSE_FILE} up -d # Start a fabric network stop: # stop the fabric network diff --git a/hyperledger_fabric/v1.4.4/Makefile b/hyperledger_fabric/v1.4.4/Makefile index 976a058d..08b686d9 100644 --- a/hyperledger_fabric/v1.4.4/Makefile +++ b/hyperledger_fabric/v1.4.4/Makefile @@ -42,8 +42,6 @@ test: ready: # create/join channel, install/instantiate cc make stop - @echo "Make sure the local hlf_net docker bridge exists" - docker network ls|grep hlf_net > /dev/null || docker network create hlf_net # make clean_config_channel # Remove existing channel artifacts make gen_config_crypto # Will ignore if local config path exists @@ -91,6 +89,8 @@ restart: stop start start: # bootup the fabric network @echo "Start a fabric network with ${COMPOSE_FILE}..." @make clean + @echo "Make sure the local hlf_net docker bridge exists" + docker network ls|grep hlf_net > /dev/null || docker network create hlf_net @docker-compose -f ${COMPOSE_FILE} up -d # Start a fabric network stop: # stop the fabric network