Add build with docker section to README (#9792)

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Alexander Samusev
2021-10-01 05:54:41 +02:00
committed by GitHub
parent 54617ef661
commit a31ab1fc37
+14
View File
@@ -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: