mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +00:00
Reorganising the repository - external renames and moves (#4074)
* Adding first rough ouline of the repository structure * Remove old CI stuff * add title * formatting fixes * move node-exits job's script to scripts dir * Move docs into subdir * move to bin * move maintainence scripts, configs and helpers into its own dir * add .local to ignore * move core->client * start up 'test' area * move test client * move test runtime * make test move compile * Add dependencies rule enforcement. * Fix indexing. * Update docs to reflect latest changes * Moving /srml->/paint * update docs * move client/sr-* -> primitives/ * clean old readme * remove old broken code in rhd * update lock * Step 1. * starting to untangle client * Fix after merge. * start splitting out client interfaces * move children and blockchain interfaces * Move trie and state-machine to primitives. * Fix WASM builds. * fixing broken imports * more interface moves * move backend and light to interfaces * move CallExecutor * move cli off client * moving around more interfaces * re-add consensus crates into the mix * fix subkey path * relieve client from executor * starting to pull out client from grandpa * move is_decendent_of out of client * grandpa still depends on client directly * lemme tests pass * rename srml->paint * Make it compile. * rename interfaces->client-api * Move keyring to primitives. * fixup libp2p dep * fix broken use * allow dependency enforcement to fail * move fork-tree * Moving wasm-builder * make env * move build-script-utils * fixup broken crate depdencies and names * fix imports for authority discovery * fix typo * update cargo.lock * fixing imports * Fix paths and add missing crates * re-add missing crates
This commit is contained in:
committed by
Bastian Köcher
parent
becc3b0a4f
commit
60e5011c72
@@ -0,0 +1,140 @@
|
||||
# Docker compose file to simulate a sentry node setup.
|
||||
#
|
||||
#
|
||||
# Setup:
|
||||
#
|
||||
# Validator A is not supposed to be connected to the public internet. Instead it
|
||||
# connects to a sentry node (sentry-a) which connects to the public internet.
|
||||
# Validator B can reach validator A via sentry node A and vice versa.
|
||||
#
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
# 1. Build `target/release/substrate` binary: `cargo build --release`
|
||||
#
|
||||
# 2. Start networks and containers: `sudo docker-compose -f .maintain/sentry-node/docker-compose.yml up`
|
||||
#
|
||||
# 3. Reach:
|
||||
# - polkadot/apps on localhost:3000
|
||||
# - validator-a: localhost:9944
|
||||
# - validator-b: localhost:9945
|
||||
# - sentry-a: localhost:9946
|
||||
|
||||
version: "3.7"
|
||||
services:
|
||||
|
||||
validator-a:
|
||||
ports:
|
||||
- "9944:9944"
|
||||
volumes:
|
||||
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||
image: parity/substrate
|
||||
networks:
|
||||
- network-a
|
||||
command:
|
||||
# Local node id: QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR
|
||||
- "--node-key"
|
||||
- "0000000000000000000000000000000000000000000000000000000000000001"
|
||||
- "--base-path"
|
||||
- "/tmp/alice"
|
||||
- "--chain=local"
|
||||
- "--key"
|
||||
- "//Alice"
|
||||
- "--port"
|
||||
- "30333"
|
||||
- "--validator"
|
||||
- "--name"
|
||||
- "AlicesNode"
|
||||
- "--reserved-nodes"
|
||||
- "/dns4/sentry-a/tcp/30333/p2p/QmV7EhW6J6KgmNdr558RH1mPx2xGGznW7At4BhXzntRFsi"
|
||||
# Not only bind to localhost.
|
||||
- "--ws-external"
|
||||
- "--rpc-external"
|
||||
# - "--log"
|
||||
# - "sub-libp2p=trace"
|
||||
# - "--log"
|
||||
# - "afg=trace"
|
||||
- "--no-telemetry"
|
||||
- "--rpc-cors"
|
||||
- "all"
|
||||
|
||||
sentry-a:
|
||||
image: parity/substrate
|
||||
ports:
|
||||
- "9946:9944"
|
||||
volumes:
|
||||
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||
networks:
|
||||
- network-a
|
||||
- internet
|
||||
command:
|
||||
# Local node id: QmV7EhW6J6KgmNdr558RH1mPx2xGGznW7At4BhXzntRFsi
|
||||
- "--node-key"
|
||||
- "0000000000000000000000000000000000000000000000000000000000000003"
|
||||
- "--base-path"
|
||||
- "/tmp/sentry"
|
||||
- "--chain=local"
|
||||
# Don't configure a key, as sentry-a is not a validator.
|
||||
# - "--key"
|
||||
# - "//Charlie"
|
||||
- "--port"
|
||||
- "30333"
|
||||
# sentry-a is not a validator.
|
||||
# - "--validator"
|
||||
- "--name"
|
||||
- "CharliesNode"
|
||||
- "--bootnodes"
|
||||
- "/dns4/validator-a/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR"
|
||||
- "--bootnodes"
|
||||
- "/dns4/validator-b/tcp/30333/p2p/QmSVnNf9HwVMT1Y4cK1P6aoJcEZjmoTXpjKBmAABLMnZEk"
|
||||
- "--no-telemetry"
|
||||
- "--rpc-cors"
|
||||
- "all"
|
||||
# Not only bind to localhost.
|
||||
- "--ws-external"
|
||||
- "--rpc-external"
|
||||
# Make sure sentry-a still participates as a grandpa voter to forward
|
||||
# grandpa finality gossip messages.
|
||||
- "--grandpa-voter"
|
||||
|
||||
validator-b:
|
||||
image: parity/substrate
|
||||
ports:
|
||||
- "9945:9944"
|
||||
volumes:
|
||||
- ../../target/release/substrate:/usr/local/bin/substrate
|
||||
networks:
|
||||
- internet
|
||||
command:
|
||||
# Local node id: QmSVnNf9HwVMT1Y4cK1P6aoJcEZjmoTXpjKBmAABLMnZEk
|
||||
- "--node-key"
|
||||
- "0000000000000000000000000000000000000000000000000000000000000002"
|
||||
- "--base-path"
|
||||
- "/tmp/bob"
|
||||
- "--chain=local"
|
||||
- "--key"
|
||||
- "//Bob"
|
||||
- "--port"
|
||||
- "30333"
|
||||
- "--validator"
|
||||
- "--name"
|
||||
- "BobsNode"
|
||||
- "--bootnodes"
|
||||
- "/dns4/validator-a/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR"
|
||||
- "--bootnodes"
|
||||
- "/dns4/sentry-a/tcp/30333/p2p/QmV7EhW6J6KgmNdr558RH1mPx2xGGznW7At4BhXzntRFsi"
|
||||
- "--no-telemetry"
|
||||
- "--rpc-cors"
|
||||
- "all"
|
||||
# Not only bind to localhost.
|
||||
- "--ws-external"
|
||||
- "--rpc-external"
|
||||
|
||||
ui:
|
||||
image: polkadot-js/apps
|
||||
ports:
|
||||
- "3000:80"
|
||||
|
||||
networks:
|
||||
network-a:
|
||||
internet:
|
||||
Reference in New Issue
Block a user