Skip to content
Snippets Groups Projects
Commit b39bad58 authored by Alexander's avatar Alexander Committed by GitHub
Browse files

Add build with docker info to README (#609)

* Add build with docker info to README

* removed few lines

* small fix README
parent 7364a773
Branches
No related merge requests found
...@@ -50,9 +50,22 @@ eventually be included by the relay chain for a parachain. ...@@ -50,9 +50,22 @@ eventually be included by the relay chain for a parachain.
To run a Rococo collator you will need to compile the following binary: To run a Rococo collator you will need to compile the following binary:
``` ```
cargo build --release -p polkadot-collator cargo build --release --locked -p polkadot-collator
``` ```
Otherwise you can compile it with
[Parity CI docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux):
```bash
docker run --rm -it -w /shellhere/cumulus \
-v $(pwd):/shellhere/cumulus \
paritytech/ci-linux:production cargo build --release --locked -p polkadot-collator
sudo chown -R $(id -u):$(id -g) target/
```
If you want to reproduce other steps of CI process you can use the following
[guide](https://github.com/paritytech/scripts#gitlab-ci-for-building-docker-images).
Once the executable is built, launch collators for each parachain (repeat once each for chain Once the executable is built, launch collators for each parachain (repeat once each for chain
`tick`, `trick`, `track`): `tick`, `trick`, `track`):
...@@ -120,7 +133,7 @@ cargo build --release ...@@ -120,7 +133,7 @@ cargo build --release
## Build the docker image ## Build the docker image
After building `polkadot-collator` with cargo as documented in [this chapter](#build--launch-rococo-collators), the following will allow producting a new docker image where the compiled binary is injected: After building `polkadot-collator` with cargo or with Parity docker image as documented in [this chapter](#build--launch-rococo-collators), the following will allow producting a new docker image where the compiled binary is injected:
``` ```
./docker/scripts/build-injected-image.sh ./docker/scripts/build-injected-image.sh
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment