Skip to content

Commit 51b646e

Browse files
committed
ci: disabled: riscv: minimise docker overlays
Suggested by @bjorn3 Every RUN command creates a new overlay on top of the image as of before the RUN command. Using fewer RUN commands prevents intermediate overlays (which in this case would have contained the entire Linux source tree).
1 parent 1d919c9 commit 51b646e

File tree

1 file changed

+3
-3
lines changed
  • src/ci/docker/host-x86_64/disabled/riscv64gc-linux

1 file changed

+3
-3
lines changed

src/ci/docker/host-x86_64/disabled/riscv64gc-linux/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ RUN curl https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.16.tar.xz | tar
4040
cp linux.config linux-5.6.16/.config && \
4141
cd /build/linux-5.6.16 && \
4242
make olddefconfig && \
43-
make -j$(nproc) vmlinux
44-
RUN cp linux-5.6.16/vmlinux /tmp
45-
RUN rm -rf linux-5.6.16
43+
make -j$(nproc) vmlinux && \
44+
cp vmlinux /tmp && \
45+
rm -rf linux-5.6.16
4646

4747
# Compile an instance of busybox as this provides a lightweight system and init
4848
# binary which we will boot into. Only trick here is configuring busybox to

0 commit comments

Comments
 (0)