From f0f7832993ffe7898a7141ae476bda0b30b19eb5 Mon Sep 17 00:00:00 2001 From: kienn6034 Date: Thu, 18 Jan 2024 10:36:44 +0700 Subject: [PATCH] perf: add three more nodes --- Makefile | 4 +- contrib/updates/docker-compose.yml | 57 ++++++++++++++++++++++++++ docker-compose.yml | 64 +++++++++++++++--------------- 3 files changed, 91 insertions(+), 34 deletions(-) diff --git a/Makefile b/Makefile index dd05ee15..b4c6d803 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ HTTPS_GIT := https://github.com/White-Whale-Defi-Platform/migaloo-chain.git export GO111MODULE = on -TESTNET_NVAL := $(if $(TESTNET_NVAL),$(TESTNET_NVAL),3) +TESTNET_NVAL := $(if $(TESTNET_NVAL),$(TESTNET_NVAL),6) TESTNET_CHAINID := $(if $(TESTNET_CHAINID),$(TESTNET_CHAINID),migaloo-1) @@ -106,7 +106,7 @@ build: go build $(BUILD_FLAGS) -o bin/migalood ./cmd/migalood docker-build-debug: - @DOCKER_BUILDKIT=1 docker bufild -t migaloo:debug -f Dockerfile . + @DOCKER_BUILDKIT=1 docker build -t migaloo:debug -f Dockerfile . runsim: $(RUNSIM) $(RUNSIM): diff --git a/contrib/updates/docker-compose.yml b/contrib/updates/docker-compose.yml index c069cf0e..da8d22fa 100644 --- a/contrib/updates/docker-compose.yml +++ b/contrib/updates/docker-compose.yml @@ -57,6 +57,63 @@ services: networks: localnet: ipv4_address: 192.168.10.4 + + migaloodnode3: + container_name: migaloodnode3 + platform: linux/amd64 + image: "migaloo/migalood-upgrade-env" + environment: + - ID=3 + - LOG=migalood.log + - DAEMON_HOME=/migalood/node3/migalood + - DAEMON_NAME=migalood + - DAEMON_RESTART_AFTER_UPGRADE=true + ports: + - "9093:9090" + - "26663-26664:26656-26657" + volumes: + - ../../build:/migalood:Z + networks: + localnet: + ipv4_address: 192.168.10.5 + + migaloodnode4: + container_name: migaloodnode4 + platform: linux/amd64 + image: "migaloo/migalood-upgrade-env" + environment: + - ID=4 + - LOG=migalood.log + - DAEMON_HOME=/migalood/node4/migalood + - DAEMON_NAME=migalood + - DAEMON_RESTART_AFTER_UPGRADE=true + ports: + - "9094:9090" + - "26665-26666:26656-26657" + volumes: + - ../../build:/migalood:Z + networks: + localnet: + ipv4_address: 192.168.10.6 + + migaloodnode5: + container_name: migaloodnode5 + platform: linux/amd64 + image: "migaloo/migalood-upgrade-env" + environment: + - ID=5 + - LOG=migalood.log + - DAEMON_HOME=/migalood/node5/migalood + - DAEMON_NAME=migalood + - DAEMON_RESTART_AFTER_UPGRADE=true + ports: + - "9095:9090" + - "26667-26668:26656-26657" + volumes: + - ../../build:/migalood:Z + networks: + localnet: + ipv4_address: 192.168.10.7 networks: localnet: diff --git a/docker-compose.yml b/docker-compose.yml index a77dcfd1..65447e76 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,39 +52,39 @@ services: localnet: ipv4_address: 192.168.10.4 - # migaloo3: - # container_name: migaloo3 - # image: migalood - # command: start --home /migalood - # environment: - # - ID=3 - # - LOG=migalood.log - # ports: - # - "1320:1317" - # - "9093:9090" - # - "26663-26664:26656-26657" - # volumes: - # - ./build/node3/simd:/migalood:Z - # networks: - # localnet: - # ipv4_address: 192.168.10.5 + migaloo3: + container_name: migaloo3 + image: migalood + command: start --home /migalood + environment: + - ID=3 + - LOG=migalood.log + ports: + - "1320:1317" + - "9093:9090" + - "26663-26664:26656-26657" + volumes: + - ./build/node3/simd:/migalood:Z + networks: + localnet: + ipv4_address: 192.168.10.5 - # migaloo4: - # container_name: migaloo4 - # image: migalood - # command: start --home /migalood - # environment: - # - ID=4 - # - LOG=migalood.log - # ports: - # - "1321:1317" - # - "9094:9090" - # - "26665-26666:26656-26657" - # volumes: - # - ./build/node4/simd:/migalood:Z - # networks: - # localnet: - # ipv4_address: 192.168.10.6 + migaloo4: + container_name: migaloo4 + image: migalood + command: start --home /migalood + environment: + - ID=4 + - LOG=migalood.log + ports: + - "1321:1317" + - "9094:9090" + - "26665-26666:26656-26657" + volumes: + - ./build/node4/simd:/migalood:Z + networks: + localnet: + ipv4_address: 192.168.10.6 networks: