Skip to content

Commit

Permalink
Merge pull request #40 from trestinlsd/develop
Browse files Browse the repository at this point in the history
fix(docker-compose): fix bugs about docker-compose not starting cluster
  • Loading branch information
cloud8little authored Apr 23, 2024
2 parents 96a4964 + 8dda3d2 commit c47a85f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ localnet-build:
# Generate multi node configuration files and initialize configurations
# TODO: exocore testnet chainid is still under consideration and need to be finalized later
localnet-init: localnet-stop
exocored testnet init-files --chain-id exocoretestnet_233-1 --v 4 -o $(CURDIR)/build/.testnets --starting-ip-address 192.168.10.2 --keyring-backend=test && \
exocored testnet init-files --chain-id exocoretestnet_233-1 --v 4 -o $(CURDIR)/build/.testnets --starting-ip-address 192.168.0.2 --keyring-backend=os && \
./networks/init-node.sh

# Start a 4-node testnet locally
Expand Down
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ services:
- "26661:26660"
- "8841:8546"
volumes:
- ./build/.testnets:/data:Z
- ./build/.testnets:/home/exocore/data:Z
networks:
localnet:
ipv4_address: 192.168.10.2
ipv4_address: 192.168.0.2

exocorenode1:
container_name: exocorenode1
Expand All @@ -46,10 +46,10 @@ services:
- "26662:26660"
- "8842:8546"
volumes:
- ./build/.testnets:/data:Z
- ./build/.testnets:/home/exocore/data:Z
networks:
localnet:
ipv4_address: 192.168.10.3
ipv4_address: 192.168.0.3

exocorenode2:
container_name: exocorenode2
Expand All @@ -71,10 +71,10 @@ services:
- "26663:26660"
- "8843:8546"
volumes:
- ./build/.testnets:/data:Z
- ./build/.testnets:/home/exocore/data:Z
networks:
localnet:
ipv4_address: 192.168.10.4
ipv4_address: 192.168.0.4

exocorenode3:
container_name: exocorenode3
Expand All @@ -96,15 +96,15 @@ services:
- "26664:26660"
- "8844:8546"
volumes:
- ./build/.testnets:/data:Z
- ./build/.testnets:/home/exocore/data:Z
networks:
localnet:
ipv4_address: 192.168.10.5
ipv4_address: 192.168.0.5

networks:
localnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.10.0/18
- subnet: 192.168.0.0/18
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ require (
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e
google.golang.org/grpc v1.57.1
google.golang.org/protobuf v1.33.0
gopkg.in/yaml.v2 v2.4.0
sigs.k8s.io/yaml v1.3.0
)
Expand Down Expand Up @@ -214,6 +213,7 @@ require (
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230815205213-6bfd019c3878 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion networks/local/exocore/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ! [ -f "${BINARY}" ]; then
exit 1
fi

export EHOME="/data/node${ID}/exocored"
export EHOME="/home/exocore/data/node${ID}/exocored"
export APP_TOML="$EHOME/config/app.toml"
export CLIENT_TOML="$EHOME/config/client.toml"
#APP_TOML_TMP="$EHOME/config/tmp_app.toml"
Expand Down

0 comments on commit c47a85f

Please sign in to comment.