Skip to content

Commit

Permalink
Don't install rustdoc along with default Rust toolchain
Browse files Browse the repository at this point in the history
Downloading and installing rustdoc every the image is built takes
considerable time that is not necessary, so specify only the rustup
components we need.

Signed-off-by: Manos Pitsidianakis <[email protected]>
  • Loading branch information
epilys authored and roypat committed Oct 18, 2023
1 parent 9347c52 commit ff56109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ apt-get clean && rm -rf /var/lib/apt/lists/*
pip3 install --no-cache-dir pytest pexpect boto3 pytest-timeout && apt purge -y python3-pip

# Install rustup and a fixed version of Rust.
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN"
curl https://sh.rustup.rs -sSf | sh -s -- \
-y --default-toolchain "$RUST_TOOLCHAIN" \
--profile minimal --component clippy,rustfmt

# Install cargo tools.
# Use `git` executable to avoid OOM on arm64:
Expand Down

0 comments on commit ff56109

Please sign in to comment.