From b39bad58f19a63dcd14305c505b3a58761ab51e8 Mon Sep 17 00:00:00 2001 From: Alexander <41779041+alvicsam@users.noreply.github.com> Date: Thu, 16 Sep 2021 11:49:53 +0200 Subject: [PATCH] Add build with docker info to README (#609) * Add build with docker info to README * removed few lines * small fix README --- cumulus/README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/cumulus/README.md b/cumulus/README.md index f0de4e7d63d..3b9028ebd62 100644 --- a/cumulus/README.md +++ b/cumulus/README.md @@ -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 -- GitLab