File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,29 @@ Parity builds and publishes a container image that can be found as `docker.io/pa
1616## Parity CI image
1717
1818Parity maintains and uses internally a generic "CI" image that can be used as a base to build binaries: [ Parity CI
19- container image] ( https://github.com/paritytech/scripts /tree/master/dockerfiles /ci-unified ) :
19+ container image] ( https://github.com/paritytech/dockerfiles /tree/main /ci-unified ) :
2020
2121The command below allows building a Linux binary without having to even install Rust or any dependency locally:
2222
2323``` bash
24+ export $( curl https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/master/.github/env | tr -d ' "' )
2425docker run --rm -it \
2526 -w /polkadot-sdk \
2627 -v $( pwd) :/polkadot-sdk \
27- docker.io/paritytech/ci-unified:bullseye-1.84.1-2025-01-28-v202502131220 \
28+ $IMAGE \
2829 cargo build --release --locked -p polkadot-parachain-bin --bin polkadot-parachain
2930sudo chown -R $( id -u) :$( id -g) target/
3031```
3132
33+ To reproduce the clean CI environment locally you can use the following commands:
34+
35+ ``` bash
36+ export $( curl https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/master/.github/env | tr -d ' "' )
37+ docker run -it --rm $IMAGE bash
38+ root@e2ff8a3f347b:/builds# git clone https://github.com/paritytech/polkadot-sdk.git && cd polkadot-sdk
39+ root@e2ff8a3f347b:/builds# < your cargo command goes here>
40+ ```
41+
3242## Injected image
3343
3444Injecting a binary inside a base image is the quickest option to get a working container image. This only works if you
You can’t perform that action at this time.
0 commit comments