Add build with docker info to README (#609)

* Add build with docker info to README

* removed few lines

* small fix README
This commit is contained in:
Alexander
2021-09-16 11:49:53 +02:00
committed by GitHub
parent 5af2990cfd
commit b5e7376758
+15 -2
View File
@@ -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:
```
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
`tick`, `trick`, `track`):
@@ -120,7 +133,7 @@ cargo build --release
## 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