GithubHelp home page GithubHelp logo

kailai-wang / parachain-launch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-web3-stack/parachain-launch

0.0 0.0 0.0 2.46 MB

Tool to generate docker-compose.yml to launch a full relaychain - parachain testnet.

License: Apache License 2.0

JavaScript 5.36% TypeScript 94.64%

parachain-launch's Introduction

parachain-launch

Introduction

parachain-launch is a script that generates a docker compose file allowing you to launch a testnet of multiple blockchain nodes.

Options

The following options are supported by the generate script.

Option Description Required Default
--config Path to config file. No ./config.yml
--output Path to output dir. No ./output
--yes Overwrite generated files? No false

Global Usage

  1. Install the package globally:
yarn global add @open-web3/parachain-launch
  1. Download the example config file and edit as necessary.

  2. Run the generate script:

parachain-launch generate --config=/path/to/config.yml [--yes] [--output=/path/to/output]

This will generate the docker files a folder called output in your current working directory or in the directory provided to the --output option.

Local Usage

  1. Install the package locally:
yarn add @open-web3/parachain-launch
  1. Download the example config file and edit as necessary.

  2. Run the service from within the local directory:

node_modules/.bin/parachain-launch generate --config=/path/to/config.yml [--yes] [--output=/path/to/output]

This will generate the docker files a folder called output in your current working directory or in the directory provided to the --output option.

Start relaychain and parachain

To start the nodes, navigate to the output folder that you generated the scripts in and build the docker container:

cd ./output # OR custom output directory

docker-compose up -d --build

NOTE: If you regenerate the output directory then you will need to rebuild the docker images.

Additional Docker Commands

List all of the containers:

docker ps -a

Track container logs:

docker logs -f [container_id/container_name]

Stop all of the containers:

docker-compose stop

Remove all of the containers:

docker-compose rm

Remove all of the containers and volumes (This will wipe any existing chain data):

docker-compose down -v

parachain-launch's People

Contributors

andor0 avatar bingryan avatar brunopgalvao avatar dependabot[bot] avatar eliasmpw avatar gopherj avatar jonnnnyw avatar kailai-wang avatar mateuszaaa avatar mostimasblunderbuss avatar ntduan avatar tanas0 avatar vanderian avatar xlc avatar zjb0807 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.