From 04e3299903a626236e75d2eb00d52aca1534e8e8 Mon Sep 17 00:00:00 2001 From: Lorenzo Fontana Date: Fri, 11 Jan 2019 13:35:29 +0100 Subject: [PATCH] fix(kubectl-trace): bpftracebase using specified version Signed-off-by: Lorenzo Fontana --- Dockerfile.bpftracebase | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile.bpftracebase b/Dockerfile.bpftracebase index 88042d40..41b33d72 100644 --- a/Dockerfile.bpftracebase +++ b/Dockerfile.bpftracebase @@ -1,6 +1,5 @@ -ARG bpftracesha - FROM alpine:3.8 as builder +ARG bpftracesha ENV STATIC_LINKING=ON ENV RUN_TESTS=0 RUN apk add --update \ @@ -24,11 +23,12 @@ RUN ln -s /usr/include/llvm5/llvm-c /usr/include/llvm-c WORKDIR / -RUN git clone https://github.com/iovisor/bpftrace.git /bpftrace +ADD https://github.com/iovisor/bpftrace/archive/${bpftracesha}.tar.gz /bpftrace.tar.gz +RUN tar -xvf /bpftrace.tar.gz -WORKDIR /bpftrace +RUN mv bpftrace-${bpftracesha} /bpftrace -#RUN git checkout ${bpftracesha} +WORKDIR /bpftrace WORKDIR /bpftrace/docker