Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions dockerfiles/base-ci-linux/Dockerfile

This file was deleted.

37 changes: 0 additions & 37 deletions dockerfiles/base-ci-linux/README.md

This file was deleted.

12 changes: 6 additions & 6 deletions dockerfiles/base-ci/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# base-ci-linux
# base-ci

Docker image based on [official Debian image](https://hub.docker.com/_/debian) debian:buster.
Docker image based on [official Ubuntu 20.04 image](https://hub.docker.com/_/ubuntu) ubuntu:20.04.

Used as base for `Substrate`-based CI images.
Used as a base for our CI images.

Our base CI image `<base-ci-linux:latest>`.
Our base CI image `<base-ci:latest>`.

Used to build and test Substrate-based projects.

Expand All @@ -24,7 +24,7 @@ Used to build and test Substrate-based projects.
- `ca-certificates`
- `jq`

[Click here](https://hub.docker.com/repository/docker/paritytech/base-ci-linux) for the registry.
[Click here](https://hub.docker.com/repository/docker/paritytech/base-ci) for the registry.

**Rust tools & toolchains:**

Expand All @@ -34,5 +34,5 @@ Used to build and test Substrate-based projects.
## Usage

```Dockerfile
FROM docker.io/paritytech/base-ci-linux:latest
FROM docker.io/paritytech/base-ci:latest
```
15 changes: 4 additions & 11 deletions dockerfiles/ci-linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ ARG VCS_REF=master
ARG BUILD_DATE=""
ARG REGISTRY_PATH=docker.io/paritytech

FROM ${REGISTRY_PATH}/base-ci-linux:latest
FROM ${REGISTRY_PATH}/base-ci:latest

# metadata
LABEL summary="Image for Substrate-based projects." \
name="${REGISTRY_PATH}/ci-linux" \
maintainer="devops-team@parity.io" \
version="1.0" \
description="Inherits from base-ci-linux; chromium-driver, \
wasm-gc, wasm-bindgen-cli, wasm-pack, cargo-audit, cargo-web, cargo-deny " \
version="2.0" \
description="Inherits from paritytech/base-ci; \
wasm-gc, wasm-bindgen-cli, wasm-pack, cargo-deny " \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.source="https://github.com/paritytech/scripts/blob/${VCS_REF}/\
dockerfiles/ci-linux/Dockerfile" \
Expand All @@ -21,9 +21,6 @@ dockerfiles/ci-linux/README.md" \

# install tools and dependencies
RUN set -eux && \
apt-get -y update && \
apt-get install -y --no-install-recommends \
chromium-driver && \
# install `rust-src` component for ui test
rustup component add rust-src && \
# install specific Rust nightly, default is stable, use minimum components
Expand All @@ -44,10 +41,6 @@ RUN set -eux && \
# versions
rustup show && \
cargo --version && \
# apt clean up
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
# cargo clean up
# removes compilation artifacts cargo install creates (>250M)
rm -rf "${CARGO_HOME}/registry" "${CARGO_HOME}/git" /root/.cache/sccache
Expand Down
14 changes: 7 additions & 7 deletions dockerfiles/ci-linux/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# ci-linux

Docker image based on our base CI image `<base-ci-linux:latest>`.
Docker image based on our base CI image `<base-ci:latest>`.

Used to build and test Substrate-based projects.

## Dependencies and Tools

- `chromium-driver`

**Inherited from `<base-ci-linux:latest>`:**
**Inherited from `<base-ci:latest>`:**

- `libssl-dev`
- `clang-7`
- `clang-10`
- `clang++-10`
- `lld`
- `libclang-dev`
- `make`
Expand All @@ -22,6 +21,7 @@ Used to build and test Substrate-based projects.
- `time`
- `rhash`
- `ca-certificates`
- `jq`

**Rust versions:**

Expand All @@ -30,12 +30,12 @@ Used to build and test Substrate-based projects.

**Rust tools & toolchains:**

- `cargo-web`
- `sccache`
- `wasm-pack`
- `wasm-bindgen`
- `wasm-gc`
- `cargo-deny`
- `cargo-spellcheck`: Required for the CI to do automated spell-checking.
- `cargo-spellcheck`: Required for the CI to do automated spell-checking
- `wasm32-unknown-unknown` toolchain

[Click here](https://hub.docker.com/repository/docker/paritytech/ci-linux) for the registry.
Expand Down