Skip to content
New issue

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

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

Already on GitHub? # to your account

roccoco docker setup update #268

Merged
merged 9 commits into from
Jun 15, 2022
Merged

Conversation

mateuszaaa
Copy link
Member

@mateuszaaa mateuszaaa commented Jun 9, 2022

I decided to split our docker config into smaller resuable pieces configurable through env file. Everything wrapped into makefile for convinience

Start dockerized mangata-node locally for specific configuratoin

cd devops/parachain/
make start ENV=<SOME_SPECIFIC_ENV>   # runs both relay-chain & para-chain with specified environment 

available configs are available in mangata-node/devops/parachain/env dir

$ ls -c1 devops/parachain/env
bootstrap
mangata-0.13.0
rococo

Start dockerized mangata-node locally

cd devops/parachain/
make start ENV=rococo

or

cd devops/parachain/
make start

default rococo is default environment

Check logs

  • parachain
cd devops/parachain/
make logs-para
  • relay
cd devops/parachain/
make logs-relay

Stop dockerized mangata-node locally

cd devops/parachain/
make stop                                                        # runs local rococo chain, both relay-chain & para-chain nodes

Restart dockerized mangata-node locally (start & stop)

cd devops/parachain/
make restart                                                        # runs local rococo chain, both relay-chain & para-chain nodes

Start parachain with state stored on host machine (useful for runtime upgrade testing!!!)

parachain state is stored in devops/parachain/data directory

cd devops/parachain/
make clean                                                            # clean previous state (if needed)
make start-relay                                                     # starts relay network
make start-para-persist                                          # starts parachain network

Example env configuration

$ cat env/rococo 
PARA_CHAIN=mangata-rococo-local-testnet
RELAY_CHAIN=/etc/mangata/rococo-local-0.9.23.json
PARACHAIN_DOCKER_IMAGE=mangatasolutions/mangata-node:rococo-0.14.0
RELAYCHAIN_DOCKER_IMAGE=parity/polkadot:v0.9.23

Override single param for existing config (useful when testing docker image downloaded from github job)

export PARACHAIN_DOCKER_IMAGE=mangatasolutions/mangata-node:rococo-a3457d8f323a20ec180928b4e375e58e9fb7b564
make start ENV=rococo

i`ll update wiki afterwards

@mateuszaaa mateuszaaa force-pushed the feature/rococo-relay-0.9.23 branch 3 times, most recently from 22b9e45 to 690666e Compare June 9, 2022 05:13
@mateuszaaa mateuszaaa force-pushed the feature/rococo-relay-0.9.23 branch from 43c654d to 9478d82 Compare June 10, 2022 16:25
@mateuszaaa mateuszaaa force-pushed the feature/rococo-relay-0.9.23 branch from e6b78ae to afa9c7d Compare June 14, 2022 14:55
@iStrike7 iStrike7 self-requested a review June 15, 2022 12:33
@mateuszaaa mateuszaaa merged commit acc7e43 into develop Jun 15, 2022
@mateuszaaa mateuszaaa deleted the feature/rococo-relay-0.9.23 branch June 15, 2022 12:36
johnbayo pushed a commit to johnbayo/mangata-node that referenced this pull request Jun 24, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants