windows test-net (#422)

* windows test-net

* Update Makefile

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
Justin Thompson 2020-08-04 14:05:18 -06:00 committed by GitHub
parent 241fb2fe83
commit 50a632580d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,6 @@ docker:
docker cp ethermint:/usr/bin/emintcli ./build/ docker cp ethermint:/usr/bin/emintcli ./build/
docker-localnet: docker-localnet:
# build the image
docker build -f ./networks/local/ethermintnode/Dockerfile . -t emintd/node docker build -f ./networks/local/ethermintnode/Dockerfile . -t emintd/node
############################################################################### ###############################################################################
@ -268,11 +267,19 @@ build-docker-local-ethermint:
# Run a 4-node testnet locally # Run a 4-node testnet locally
localnet-start: localnet-stop 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/ mkdir -p ./build/
@$(MAKE) docker-localnet @$(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 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 docker-compose up -d
endif
localnet-stop: localnet-stop:
docker-compose down docker-compose down