diff --git a/scripts/parachain-launch/README.md b/scripts/parachain-launch/README.md new file mode 100644 index 00000000000..8d971192ae9 --- /dev/null +++ b/scripts/parachain-launch/README.md @@ -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. + +To generate the compose file, first ensure `parachain-launch` is installed and run the following command + +``` +parachain-launch generate statemine.yml +``` + +This will produce an output directory that contains all the necessary files to run the testnet. + +Once the run is successful, you can spin up the infrastructure using the below command + +``` +docker-compose -f output/docker-compose.yml up -d +``` + +# Requirements +[docker-compose](https://docs.docker.com/compose/install/) and [Parachain-launch](https://github.com/open-web3-stack/parachain-launch) \ No newline at end of file diff --git a/scripts/parachain-launch/statemine.yml b/scripts/parachain-launch/statemine.yml new file mode 100644 index 00000000000..29a66ee1c04 --- /dev/null +++ b/scripts/parachain-launch/statemine.yml @@ -0,0 +1,29 @@ +relaychain: + image: parity/polkadot:v0.9.29 + chain: rococo-local + runtimeGenesisConfig: + configuration: + config: + validation_upgrade_cooldown: 10 + validation_upgrade_delay: 10 + flags: + - --rpc-methods=unsafe + 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 + nodes: + - flags: + - --alice