Skip to content

Commit b252690

Browse files
authored
docs: update local ci execution instruction (#8003)
PR updates the contributor docs and adds commands to execute CI locally. cc paritytech/ci_cd#965
1 parent ec32daa commit b252690

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/contributor/container.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1818
Parity 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

2121
The 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 '"')
2425
docker 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
2930
sudo 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

3444
Injecting a binary inside a base image is the quickest option to get a working container image. This only works if you

0 commit comments

Comments
 (0)