mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 00:01:03 +00:00
scripts/sentry-node: Ensure release mode and reserved connection for A (#3077)
Ensure all nodes in the sentry setup run in release mode. In addition configure sentry-a as a reserved node for validator-a.
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
# 1. Build `target/debug/substrate` binary: `cargo build`
|
# 1. Build `target/release/substrate` binary: `cargo build --release`
|
||||||
#
|
#
|
||||||
# 2. Start networks and containers: `sudo docker-compose -f scripts/sentry-node/docker-compose.yml up`
|
# 2. Start networks and containers: `sudo docker-compose -f scripts/sentry-node/docker-compose.yml up`
|
||||||
#
|
#
|
||||||
@@ -27,7 +27,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9944:9944"
|
- "9944:9944"
|
||||||
volumes:
|
volumes:
|
||||||
- ../../target/debug/substrate:/usr/local/bin/substrate
|
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||||
image: parity/substrate
|
image: parity/substrate
|
||||||
networks:
|
networks:
|
||||||
- network-a
|
- network-a
|
||||||
@@ -45,8 +45,8 @@ services:
|
|||||||
- "--validator"
|
- "--validator"
|
||||||
- "--name"
|
- "--name"
|
||||||
- "AlicesNode"
|
- "AlicesNode"
|
||||||
- "--bootnodes"
|
- "--reserved-nodes"
|
||||||
- "/dns4/validator-b/tcp/30333/p2p/QmSVnNf9HwVMT1Y4cK1P6aoJcEZjmoTXpjKBmAABLMnZEk"
|
- "/dns4/sentry-a/tcp/30333/p2p/QmV7EhW6J6KgmNdr558RH1mPx2xGGznW7At4BhXzntRFsi"
|
||||||
# Not only bind to localhost.
|
# Not only bind to localhost.
|
||||||
- "--ws-external"
|
- "--ws-external"
|
||||||
- "--rpc-external"
|
- "--rpc-external"
|
||||||
@@ -63,7 +63,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9946:9944"
|
- "9946:9944"
|
||||||
volumes:
|
volumes:
|
||||||
- ../../target/debug/substrate:/usr/local/bin/substrate
|
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||||
networks:
|
networks:
|
||||||
- network-a
|
- network-a
|
||||||
- internet
|
- internet
|
||||||
@@ -102,7 +102,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "9945:9944"
|
- "9945:9944"
|
||||||
volumes:
|
volumes:
|
||||||
- ../../target/debug/substrate:/usr/local/bin/substrate
|
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||||
networks:
|
networks:
|
||||||
- internet
|
- internet
|
||||||
command:
|
command:
|
||||||
@@ -121,6 +121,8 @@ services:
|
|||||||
- "BobsNode"
|
- "BobsNode"
|
||||||
- "--bootnodes"
|
- "--bootnodes"
|
||||||
- "/dns4/validator-a/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR"
|
- "/dns4/validator-a/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR"
|
||||||
|
- "--bootnodes"
|
||||||
|
- "/dns4/sentry-a/tcp/30333/p2p/QmV7EhW6J6KgmNdr558RH1mPx2xGGznW7At4BhXzntRFsi"
|
||||||
- "--no-telemetry"
|
- "--no-telemetry"
|
||||||
- "--rpc-cors"
|
- "--rpc-cors"
|
||||||
- "all"
|
- "all"
|
||||||
|
|||||||
Reference in New Issue
Block a user