Skip to content

Commit 01a4cf0

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

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
@@ -66,13 +66,19 @@ RUN apt-get update \
6666

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

0 commit comments

Comments
 (0)