Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Docker image for Statemint #543

Closed
mpetrunic opened this issue Jul 21, 2021 · 7 comments
Closed

Docker image for Statemint #543

mpetrunic opened this issue Jul 21, 2021 · 7 comments
Labels
T7-system_parachains This PR/Issue is related to System Parachains.

Comments

@mpetrunic
Copy link

Is there somewhere docker image that runs local testnet/devnet with statemint parachain?
If not are there somewhere some easy to follow instructions to run this setup so I can try to create docker image?

@bkchr
Copy link
Member

bkchr commented Jul 21, 2021

CC @s3krit maybe?

@TriplEight
Copy link
Contributor

There's no specific Dockerfile for this, not for packaging the bin, nor any compose file for running a parachain locally.

It should be as easy as just using the same plain Dockerfile for Polkadot.
Run it with

docker build
        --tag "statemint:local"
        --file Dockerfile .

in the same dir with a compiled binary.
To compile a binary you can use docker run -it paritytech/ci-linux:production, then run git clone <this repo> . and cargo build --release inside.

@mpetrunic
Copy link
Author

mpetrunic commented Jul 21, 2021

Hey, tnx for quick answers. I am mostly curious how to automate parachain registering inside Dockerfile, all tutorials I found was pointing to do that in UI

Seems like old repo had:
https://github.com/paritytech/statemint/blob/master/polkadot-launch

@nuke-web3
Copy link
Contributor

We added a how-to on polkadot launch to the workshop recently you might find useful @mpetrunic , and I opened up an issue on the workshop to include docker options for generic testnets, that could be modified for use.

@BenWhiteJam
Copy link
Contributor

Maybe the https://github.com/open-web3-stack/parachain-launch by @xlc might be something to look into as well?

@ayushmishra2005
Copy link
Contributor

There's no specific Dockerfile for this, not for packaging the bin, nor any compose file for running a parachain locally.

It should be as easy as just using the same plain Dockerfile for Polkadot. Run it with

docker build
        --tag "statemint:local"
        --file Dockerfile .

in the same dir with a compiled binary. To compile a binary you can use docker run -it paritytech/ci-linux:production, then run git clone <this repo> . and cargo build --release inside.

@TriplEight I was trying to create docker image of statemine but not getting success. Here are the steps, which I am following: (I am using Mac M1)

docker run -it paritytech/ci-linux:production
git clone https://github.com/paritytech/cumulus
git checkout polkadot-v0.9.9
cargo build --release

After hitting cargo build --release, I am getting


root@725c8307b55e:/builds/cumulus# cargo build --release
    Updating git repository `https://github.com/paritytech/substrate`
Killed Fetch [========>                ]  36.95%, 3.29MiB/s   

Please let me know if I am missing any step

@apopiak apopiak added the T7-system_parachains This PR/Issue is related to System Parachains. label Oct 5, 2021
@TriplEight
Copy link
Contributor

@ayushmishra2005 answered your question in #740.
Most probably, you won't be able to compile the binary on M1 locally, it's a different arch. However, it should be possible within the container as described in PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T7-system_parachains This PR/Issue is related to System Parachains.
Projects
None yet
Development

No branches or pull requests

7 participants