From 00b69f446c927b08b188fbcf4428240c348fbf52 Mon Sep 17 00:00:00 2001 From: Alexander <41779041+alvicsam@users.noreply.github.com> Date: Wed, 15 Sep 2021 15:09:52 +0200 Subject: [PATCH] Add build with docker info to README (#3843) --- polkadot/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/polkadot/README.md b/polkadot/README.md index d5251eb319..034a23a59e 100644 --- a/polkadot/README.md +++ b/polkadot/README.md @@ -108,6 +108,22 @@ cargo build --release Note that compilation is a memory intensive process. We recommend having 4 GiB of physical RAM or swap available (keep in mind that if a build hits swap it tends to be very slow). +#### Build from Source with Docker + +You can also build from source using +[Parity CI docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux): + +```bash +git checkout +docker run --rm -it -w /shellhere/polkadot \ + -v $(pwd):/shellhere/polkadot \ + paritytech/ci-linux:production cargo build --release +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). + ## Networks This repo supports runtimes for Polkadot, Kusama, and Westend.