Update Dockerfile to cache linux binaries

This commit is contained in:
Fabing LI 2024-09-13 20:11:33 +08:00 committed by Tate, Hongliang Tian
parent cfd1abd86f
commit 8632da04b5

View File

@ -23,10 +23,18 @@ RUN apt update && apt-get install -y --no-install-recommends \
#= Download dependency =====================================================
WORKDIR /root/dependency
WORKDIR /opt/linux_binary_cache
RUN wget https://raw.githubusercontent.com/asterinas/linux_vdso/2a6d2db/vdso64.so -O vdso64.so
RUN wget https://raw.githubusercontent.com/asterinas/linux_kernel/9e66d28/vmlinuz-5.15.0-105-generic \
RUN wget https://raw.githubusercontent.com/asterinas/linux_binary_cache/8a5b6fd/vmlinuz-5.15.0-105-generic \
-O vmlinuz
RUN wget https://raw.githubusercontent.com/asterinas/linux_binary_cache/8a5b6fd/kernel/drivers/block/virtio_blk.ko \
-O virtio_blk.ko
RUN wget https://raw.githubusercontent.com/asterinas/linux_binary_cache/8a5b6fd/kernel/drivers/net/net_failover.ko \
-O net_failover.ko
RUN wget https://raw.githubusercontent.com/asterinas/linux_binary_cache/8a5b6fd/kernel/drivers/net/virtio_net.ko \
-O virtio_net.ko
RUN wget https://raw.githubusercontent.com/asterinas/linux_binary_cache/8a5b6fd/kernel/net/core/failover.ko \
-O failover.ko
#= Build benchmark =========================================================