From 50a632580d132e1ca03816c1f088b1e5e5c0fb1f Mon Sep 17 00:00:00 2001 From: Justin Thompson <37157877+J-Thompson12@users.noreply.github.com> Date: Tue, 4 Aug 2020 14:05:18 -0600 Subject: [PATCH] windows test-net (#422) * windows test-net * Update Makefile Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c33e787..129cbc00 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,6 @@ docker: docker cp ethermint:/usr/bin/emintcli ./build/ docker-localnet: - # build the image docker build -f ./networks/local/ethermintnode/Dockerfile . -t emintd/node ############################################################################### @@ -268,11 +267,19 @@ build-docker-local-ethermint: # Run a 4-node testnet locally localnet-start: localnet-stop +ifeq ($(OS),Windows_NT) + mkdir build & + @$(MAKE) docker-localnet + + IF not exist "build/node0/$(ETHERMINT_DAEMON_BINARY)/config/genesis.json" docker run --rm -v $(CURDIR)/build\ethermint\Z emintd/node "emintd testnet --v 4 -o /ethermint --starting-ip-address 192.168.10.2 --keyring-backend=test" + docker-compose up -d +else mkdir -p ./build/ @$(MAKE) docker-localnet if ! [ -f build/node0/$(ETHERMINT_DAEMON_BINARY)/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/ethermint:Z emintd/node "emintd testnet --v 4 -o /ethermint --starting-ip-address 192.168.10.2 --keyring-backend=test"; fi docker-compose up -d +endif localnet-stop: docker-compose down