This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 371
add statemine parachain-launch config #1812
Closed
Closed
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
feaefc7
add statemine parachain-launch config
samelamin 64ae78b
add docs to run parachain launch
samelamin 120001a
pr comments
samelamin d346998
Update scripts/parachain-launch/statemine.yml
samelamin 0e18754
Update scripts/parachain-launch/README.md
samelamin 6e1ddad
Update scripts/parachain-launch/statemine.yml
samelamin fe8d361
remove log env variables
samelamin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # parachain-launch | ||
|
|
||
|
|
||
|
|
||
| # Introduction | ||
|
|
||
| [Parachain-launch](https://github.com/open-web3-stack/parachain-launch) is a script that generates a docker compose file allowing you to launch a testnet of multiple blockchain nodes. | ||
|
|
||
| The output directory already contains a generated docker-compose file so you can spin a testnet up without needing to install `parachain-launch` | ||
|
|
||
| To get the testnet up and running run the below command | ||
|
|
||
| ``` | ||
| docker-compose -f output/docker-compose.yml up -d | ||
| ``` | ||
|
|
||
| To regenerate the compose file, first ensure `parachain-launch` is installed and run the following command | ||
|
|
||
| ``` | ||
| parachain-launch generate statemine.yml | ||
| ``` | ||
samelamin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Requirements | ||
| The only requirement to spin a testnet up is to have [docker-compose](https://docs.docker.com/compose/install/) installed, however to generate your own compose file then please follow the instructions to install `parachain-launch` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| version: "3.7" | ||
| services: | ||
| relaychain-alice: | ||
| ports: | ||
| - 9944:9944 | ||
| - 9933:9933 | ||
| - 30333:30333 | ||
| volumes: | ||
| - relaychain-alice:/data | ||
| build: | ||
| context: . | ||
| dockerfile: relaychain.Dockerfile | ||
| command: | ||
| - --base-path=/data | ||
| - --chain=/app/rococo-local.json | ||
| - --validator | ||
| - --ws-external | ||
| - --rpc-external | ||
| - --rpc-cors=all | ||
| - --name=alice | ||
| - --alice | ||
| - --rpc-methods=unsafe | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
| environment: | ||
| RUST_LOG: parachain::candidate-backing=trace,parachain::candidate-selection=trace,parachain::pvf=debug,parachain::provisioner=trace | ||
| ulimits: | ||
| &a1 | ||
| nofile: | ||
| soft: 65536 | ||
| hard: 65536 | ||
| relaychain-bob: | ||
| ports: | ||
| - 9945:9944 | ||
| - 9934:9933 | ||
| - 30334:30333 | ||
| volumes: | ||
| - relaychain-bob:/data | ||
| build: | ||
| context: . | ||
| dockerfile: relaychain.Dockerfile | ||
| command: | ||
| - --base-path=/data | ||
| - --chain=/app/rococo-local.json | ||
| - --validator | ||
| - --ws-external | ||
| - --rpc-external | ||
| - --rpc-cors=all | ||
| - --name=bob | ||
| - --bob | ||
| - --rpc-methods=unsafe | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
| environment: | ||
| RUST_LOG: parachain::candidate-backing=trace,parachain::candidate-selection=trace,parachain::pvf=debug,parachain::provisioner=trace | ||
| ulimits: *a1 | ||
| parachain-2000-0: | ||
| ports: | ||
| - 9946:9944 | ||
| - 9935:9933 | ||
| - 30335:30333 | ||
| volumes: | ||
| - parachain-2000-0:/data | ||
| build: | ||
| context: . | ||
| dockerfile: parachain-2000.Dockerfile | ||
| command: | ||
| - --base-path=/data | ||
| - --chain=/app/statemine-local-2000.json | ||
| - --ws-external | ||
| - --rpc-external | ||
| - --rpc-cors=all | ||
| - --name=parachain-2000-0 | ||
| - --collator | ||
| - --rpc-methods=unsafe | ||
| - --force-authoring | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
| - --alice | ||
| - --node-key=15c931b2a198ea9bcb8170d41e4d838e11300d7b678f0e23c4f6b1e50977e4ef | ||
| - --listen-addr=/ip4/0.0.0.0/tcp/30333 | ||
| - -- | ||
| - --chain=/app/rococo-local.json | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
| environment: | ||
| RUST_LOG: sc_basic_authorship=trace,cumulus-consensus=trace,cumulus-collator=trace,collator_protocol=trace,collation_generation=trace,aura=debug | ||
| ulimits: *a1 | ||
| volumes: | ||
| relaychain-alice: null | ||
| relaychain-bob: null | ||
| parachain-2000-0: null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| FROM docker.io/parity/polkadot-parachain:latest | ||
| COPY . /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| FROM parity/polkadot:v0.9.29 | ||
| COPY . /app |
Large diffs are not rendered by default.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
scripts/parachain-launch/output/statemine-local-2000.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| relaychain: | ||
| image: parity/polkadot:v0.9.29 | ||
| chain: rococo-local | ||
| runtimeGenesisConfig: | ||
| configuration: | ||
| config: | ||
| validation_upgrade_cooldown: 10 | ||
| validation_upgrade_delay: 10 | ||
| env: | ||
| RUST_LOG: parachain::candidate-backing=trace,parachain::candidate-selection=trace,parachain::pvf=debug,parachain::provisioner=trace | ||
samelamin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| flags: | ||
| - --rpc-methods=unsafe | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
samelamin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| nodes: | ||
| - name: alice | ||
| - name: bob | ||
|
|
||
| parachains: | ||
| - image: docker.io/parity/polkadot-parachain:latest | ||
| chain: | ||
| base: statemine-local | ||
| collators: | ||
| - alice | ||
| sudo: alice | ||
| id: 2000 | ||
| parachain: true | ||
| flags: | ||
| - --rpc-methods=unsafe | ||
| - --force-authoring | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
| relaychainFlags: | ||
| - --wasm-execution=compiled | ||
| - --execution=wasm | ||
samelamin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| env: | ||
| RUST_LOG: sc_basic_authorship=trace,cumulus-consensus=trace,cumulus-collator=trace,collator_protocol=trace,collation_generation=trace,aura=debug | ||
samelamin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| nodes: | ||
| - flags: | ||
| - --alice | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.