Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace polkadot-launch content with parachain-launch & zombinet #1098

Open
4 tasks
nuke-web3 opened this issue Jun 6, 2022 · 3 comments
Open
4 tasks

Replace polkadot-launch content with parachain-launch & zombinet #1098

nuke-web3 opened this issue Jun 6, 2022 · 3 comments
Labels
medium A medium complexity issue new content 💡✍️ New Devhub content required. parachains 🌼 Related to cumulus, relay chains, parachains and parathreads.

Comments

@nuke-web3
Copy link
Contributor

nuke-web3 commented Jun 6, 2022

Motivation

launch is going away

We need to replace polkadot-launch throughout the docs, there is better tooling now, some community maintained and generally better UX tool to test things out in a similar fashion.

https://github.com/open-web3-stack/parachain-launch

  • asses if zero docker knowledge is needed, we don't want to have users need anything but the ability to run commands as instructed to get things working and iterating on.
  • ensure running against local binaries is possible and document here and upstream
    • If very simple, perhaps make a local image (would require and extra how-to on building docker images for any substrate project)

https://github.com/paritytech/zombienet

https://hackmd.io/uJHjSDhvQICEvm87m9970A

Considerations

@nuke-web3 nuke-web3 added new content 💡✍️ New Devhub content required. parachains 🌼 Related to cumulus, relay chains, parachains and parathreads. medium A medium complexity issue labels Jun 6, 2022
@nuke-web3 nuke-web3 changed the title Document parachain-launch use in a how-to guide Replace polkadot-launch content with parachain-launch & zombinet Jun 6, 2022
@brunopgalvao
Copy link
Contributor

This is great that we are moving in favor of Zombienet. One update I would suggest would be to modify instructions on creating Docker images in respective repos (polkadot, cumulus) to add the --platform=linux/amd64 flag so that these instructions are compatible with M1 chips. So the whole script would look something like:

cumulus (https://github.com/paritytech/cumulus#build--launch-rococo-collators)

$ docker run --rm -it -w /shellhere/cumulus \
                    -v $(pwd):/shellhere/cumulus \
                    --platform=linux/amd64 paritytech/ci-linux:production cargo build --release --locked -p polkadot-parachain
sudo chown -R $(id -u):$(id -g) target/

polkadot (https://github.com/paritytech/polkadot#build-from-source-with-docker)

git checkout <latest tagged release>
docker run --rm -it -w /shellhere/polkadot \
                    -v $(pwd):/shellhere/polkadot \
                    --platform=linux/amd64 paritytech/ci-linux:production cargo build --release
sudo chown -R $(id -u):$(id -g) target/

@brunopgalvao
Copy link
Contributor

Created a PR on Cumulus: paritytech/cumulus#1336

@brunopgalvao
Copy link
Contributor

Here is a working config for Zombienet with 4 validators, "rockmine" common goods chain, and contracts parachain. This config uses local binaries and is working:

[relaychain]
default_command = "./polkadot"
default_args = [ "-lparachain=debug" ]

chain = "rococo-local"

  [[relaychain.nodes]]
  name = "alice"
  validator = true

  [[relaychain.nodes]]
  name = "bob"
  validator = true

  [[relaychain.nodes]]
  name = "charlie"
  validator = true

  [[relaychain.nodes]]
  name = "dave"
  validator = true

[[parachains]]
id = 1000
cumulus_based = true
chain="statemine-local"

  [parachains.collator]
  name = "statemine-local"
  command = "./polkadot-parachain-rockmine"
  args = ["-lparachain=debug"]

[[parachains]]
id = 1002
cumulus_based = true
chain="contracts-rococo-dev"

  [parachains.collator]
  name = "contracts"
  command = "./polkadot-parachain"
  args = ["-lparachain=debug"]

For the polkadot-parachain-rockmine binary, I had to find and replace instances of kusama in the chainspec.rs file with rococo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium A medium complexity issue new content 💡✍️ New Devhub content required. parachains 🌼 Related to cumulus, relay chains, parachains and parathreads.
Projects
None yet
Development

No branches or pull requests

2 participants