Skip to content

Commit fd53cc8

Browse files
committed
devctr: add cargo kcov for aarch64
Signed-off-by: Diana Popa <[email protected]>
1 parent 3938452 commit fd53cc8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tools/devctr/Dockerfile.aarch64

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,19 @@ RUN apt-get update \
6565

6666
# Install the Rust toolchain
6767
#
68-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \
68+
RUN mkdir "$TMP_BUILD_DIR" \
69+
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" \
6970
&& rustup target add aarch64-unknown-linux-musl \
71+
&& cd "$TMP_BUILD_DIR" \
72+
&& cargo install cargo-kcov \
73+
&& cargo kcov --print-install-kcov-sh | sh \
7074
&& rm -rf "$CARGO_HOME/registry" \
7175
&& ln -s "$CARGO_REGISTRY_DIR" "$CARGO_HOME/registry" \
7276
&& rm -rf "$CARGO_HOME/git" \
73-
&& ln -s "$CARGO_GIT_REGISTRY_DIR" "$CARGO_HOME/git"
74-
#
77+
&& ln -s "$CARGO_GIT_REGISTRY_DIR" "$CARGO_HOME/git" \
78+
&& cd / \
79+
&& rm -rf "$TMP_BUILD_DIR"
80+
7581
# Add the tini init binary.
7682
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION_TAG}/tini-static-arm64 /sbin/tini
7783
RUN chmod +x /sbin/tini

0 commit comments

Comments
 (0)