You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: bin/node-template/README.md
+4-25Lines changed: 4 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
A fresh [Substrate](https://substrate.io/) node, ready for hacking :rocket:
4
4
5
-
A standalone version of this template is available for each release of Polkadot in the [Substrate Developer Hub Parachain Template](https://github.com/substrate-developer-hub/substrate-parachain-template/) repository.
6
-
The parachain template is generated directly at each Polkadot release branch form the [Node Template in Substreate](https://github.com/paritytech/substrate/tree/master/bin/node-template) upstream
5
+
A standalone version of this template is available for each release of Polkadot in the [Substrate Developer Hub Parachain Template](https://github.com/substrate-developer-hub/substrate-parachain-template/) repository.
6
+
The parachain template is generated directly at each Polkadot release branch from the [Node Template in Substrate](https://github.com/paritytech/substrate/tree/master/bin/node-template) upstream
7
7
8
-
It is usually best to to use the stand-alone version to start a new project.
8
+
It is usually best to use the stand-alone version to start a new project.
9
9
All bugs, suggestions, and feature requests should be made upstream in the [Substrate](https://github.com/paritytech/substrate/tree/master/bin/node-template) repository.
10
10
11
11
## Getting Started
@@ -158,25 +158,4 @@ To get all the correct dependencies, activate direnv `direnv allow` and lorri `l
158
158
159
159
### Docker
160
160
161
-
First, install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/).
162
-
163
-
Then run the following command to start a single node development chain.
164
-
165
-
```sh
166
-
./scripts/docker_run.sh
167
-
```
168
-
169
-
This command compiles the code and starts a local development network.
170
-
You can also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`) by appending your own.
Please follow the [Substrate Docker instructions here](https://github.com/paritytech/substrate/blob/master/docker/README.md) to build the Docker container with the Substrate Node Template binary.
Copy file name to clipboardExpand all lines: docker/README.md
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,49 @@ There is no requirement on having Rust or any other toolchain installed but a wo
5
5
6
6
Unlike the `parity/polkadot` image which contains a single binary (`polkadot`!) used by default, the image in this folder builds and contains several binaries and you need to provide the name of the binary to be called.
7
7
8
-
You should refer to the .Dockerfile for the actual list. At the time of editing, the list of included binaries is:
8
+
You should refer to the [.Dockerfile](./substrate_builder.Dockerfile) for the actual list. At the time of editing, the list of included binaries is:
9
9
10
10
- substrate
11
11
- subkey
12
12
- node-template
13
13
- chain-spec-builder
14
14
15
-
To generate the latest parity/substrate image. Please first run:
Then to generate the latest parity/substrate image. Please run:
16
18
```sh
17
19
./build.sh
18
20
```
19
21
22
+
> If you wish to create a debug build rather than a production build, then you may modify the [.Dockerfile](./substrate_builder.Dockerfile) replacing `cargo build --locked --release` with just `cargo build --locked` and replacing `target/release` with `target/debug`.
23
+
24
+
> If you get an error that a tcp port address is already in use then find an available port to use for the host port in the [.Dockerfile](./substrate_builder.Dockerfile).
25
+
20
26
The image can be used by passing the selected binary followed by the appropriate tags for this binary.
21
27
22
28
Your best guess to get started is to pass the `--help flag`. Here are a few examples:
23
29
24
-
-`docker run --rm -it parity/substrate substrate --version`
25
-
-`docker run --rm -it parity/substrate subkey --help`
26
-
-`docker run --rm -it parity/substrate node-template --version`
27
-
-`docker run --rm -it parity/substrate chain-spec-builder --help`
30
+
-`./run.sh substrate --version`
31
+
-`./run.sh subkey --help`
32
+
-`./run.sh node-template --version`
33
+
-`./run.sh chain-spec-builder --help`
34
+
35
+
Then try running the following command to start a single node development chain using the Substrate Node Template binary `node-template`:
36
+
37
+
```sh
38
+
./run.sh node-template --dev --ws-external
39
+
```
40
+
41
+
Note: It is recommended to provide a custom `--base-path` to store the chain database. For example:
42
+
43
+
```sh
44
+
# Run Substrate Node Template without re-compiling
0 commit comments