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
16
16
## Parity CI image
17
17
18
18
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 ) :
20
20
21
21
The command below allows building a Linux binary without having to even install Rust or any dependency locally:
22
22
23
23
``` bash
24
+ export $( curl https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/master/.github/env | tr -d ' "' )
24
25
docker run --rm -it \
25
26
-w /polkadot-sdk \
26
27
-v $( pwd) :/polkadot-sdk \
27
- docker.io/paritytech/ci-unified:bullseye-1.84.1-2025-01-28-v202502131220 \
28
+ $IMAGE \
28
29
cargo build --release --locked -p polkadot-parachain-bin --bin polkadot-parachain
29
30
sudo chown -R $( id -u) :$( id -g) target/
30
31
```
31
32
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
+
32
42
## Injected image
33
43
34
44
Injecting 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