From 3323afae5a44859997788a4a83f0b3532be2f115 Mon Sep 17 00:00:00 2001 From: Jimmy Chu Date: Fri, 15 May 2020 13:03:54 +0800 Subject: [PATCH] fix: README update on docker usage (#43) * use docker to setup a local dev chain. * install docker link * update command * Update README.md Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * more commands to start or check a node. * purge chain in docker * update README Co-authored-by: Kaichao Sun Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 475444a..4eefba4 100644 --- a/README.md +++ b/README.md @@ -82,27 +82,24 @@ Additional CLI usage options are available and may be shown by running `cargo ru ### Run in Docker -Install [Docker](https://docs.docker.com/get-docker/) first, then run the following command to start a single node development chain. This command will firstly comipile your code, then start a local dev netork. +First, install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/). + +Then run the following command to start a single node development chain. ```bash ./scripts/docker_run.sh ``` -If you just want to run the compiled binary, +This command will firstly compile your code, and then start a local development network. You can also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`) by appending your own. A few useful ones are as follow. ```bash +# Run Substrate node without re-compiling ./scripts/docker_run.sh ./target/release/node-template --dev --ws-external -``` -Other commands are similar. Let's try purge the local dev chain here: - -```bash +# Purge the local dev chain ./scripts/docker_run.sh ./target/release/node-template purge-chain --dev -``` -You can also check whether the code is able to compile or not, - -```bash +# Check whether the code is compilable ./scripts/docker_run.sh cargo check ```