Skip to content

Commit 64cec89

Browse files
committed
docker: Define the kernel tag to clone
Signed-off-by: Michal Rostecki <[email protected]>
1 parent 64e6241 commit 64cec89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ RUN wget https://apt.llvm.org/llvm-snapshot.gpg.key && \
1717
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1818
WORKDIR /usr/local/src
1919
# Build libbpf and bpftool from the newest stable kernel sources.
20+
ENV KERNEL_TAG v5.13.1
2021
RUN git clone --depth 1 -b \
21-
v$(curl -s https://www.kernel.org/ | grep -A1 'stable:' | grep -oP '(?<=strong>).*(?=</strong.*)') \
22+
${KERNEL_TAG} \
2223
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git && \
2324
cd linux && \
2425
cd tools/lib/bpf && \

0 commit comments

Comments
 (0)