Skip to content

Commit

Permalink
[docs] Update ci image in container.md (#3799)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam authored Mar 25, 2024
1 parent 463ccb8 commit e88d1cb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/contributor/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,19 @@ Parity builds and publishes a container image that can be found as `docker.io/pa
## Parity CI image

Parity maintains and uses internally a generic "CI" image that can be used as a base to build binaries: [Parity CI
container image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux):
container image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-unified):

The command below allows building a Linux binary without having to even install Rust or any dependency locally:

```bash
docker run --rm -it \
-w /polkadot-sdk \
-v $(pwd):/polkadot-sdk \
paritytech/ci-linux:production \
paritytech/ci-unified:bullseye-1.75.0-2024-01-22-v20240222 \
cargo build --release --locked -p polkadot-parachain-bin --bin polkadot-parachain
sudo chown -R $(id -u):$(id -g) target/
```

If you want to reproduce other steps of CI process you can use the following
[guide](https://github.com/paritytech/scripts#gitlab-ci-for-building-docker-images).

## Injected image

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

0 comments on commit e88d1cb

Please sign in to comment.