From a31ab1fc37f6ed41b782a528c4f8c08b5018e406 Mon Sep 17 00:00:00 2001 From: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Date: Fri, 1 Oct 2021 05:54:41 +0200 Subject: [PATCH] Add build with docker section to README (#9792) Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> --- substrate/docs/README.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/substrate/docs/README.adoc b/substrate/docs/README.adoc index 71052420b1a..05f81442d4c 100644 --- a/substrate/docs/README.adoc +++ b/substrate/docs/README.adoc @@ -250,6 +250,20 @@ If you are trying to set up Substrate on Windows, you should do the following: 7. Finally, you need to install `cmake`: https://cmake.org/download/ +==== Docker + +You can use https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux[Parity CI docker image] with all necessary dependencies to build Substrate: + +[source, shell] +---- +#run it in the folder with the Substrate source code +docker run --rm -it -w /shellhere/substrate \ + -v $(pwd):/shellhere/substrate \ + paritytech/ci-linux:production <cargo commands> +---- + +You can find necessary cargo commands in <<shared-steps,shared steps>> + ==== Shared Steps Then, grab the Substrate source code: -- GitLab