From 8632da04b51abdacc31f4bf86e0199f74975ad88 Mon Sep 17 00:00:00 2001 From: Fabing LI Date: Fri, 13 Sep 2024 20:11:33 +0800 Subject: [PATCH] Update Dockerfile to cache linux binaries --- tools/docker/Dockerfile.jinja | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile.jinja b/tools/docker/Dockerfile.jinja index 4f837343d..65215ce14 100644 --- a/tools/docker/Dockerfile.jinja +++ b/tools/docker/Dockerfile.jinja @@ -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 =========================================================