From 7e98cc8f37ecfeb79bc389640018b9dc4b3ef7c8 Mon Sep 17 00:00:00 2001 From: Alexander <41779041+alvicsam@users.noreply.github.com> Date: Fri, 10 Sep 2021 17:58:44 +0200 Subject: [PATCH] Add local CI info to README (#1131) --- bridges/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bridges/README.md b/bridges/README.md index fe568dd220..41d7fec13d 100644 --- a/bridges/README.md +++ b/bridges/README.md @@ -38,6 +38,25 @@ cargo build --all cargo test --all ``` +Also you can build the repo with +[Parity CI Docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/bridges-ci): + +```bash +docker pull paritytech/bridges-ci:production +mkdir ~/cache +chown 1000:1000 ~/cache #processes in the container runs as "nonroot" user with UID 1000 +docker run --rm -it -w /shellhere/parity-bridges-common \ + -v /home/$(whoami)/cache/:/cache/ \ + -v "$(pwd)":/shellhere/parity-bridges-common \ + -e CARGO_HOME=/cache/cargo/ \ + -e SCCACHE_DIR=/cache/sccache/ \ + -e CARGO_TARGET_DIR=/cache/target/ paritytech/bridges-ci:production cargo build --all +#artifacts can be found in ~/cache/target +``` + +If you want to reproduce other steps of CI process you can use the following +[guide](https://github.com/paritytech/scripts#reproduce-ci-locally). + If you need more information about setting up your development environment Substrate's [Getting Started](https://substrate.dev/docs/en/knowledgebase/getting-started/) page is a good resource.