
Adds a few build scripts and a container image for reproducible builds of the ebpf programs.
20 lines
450 B
Plaintext
20 lines
450 B
Plaintext
FROM ubuntu:21.04
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
gcc-multilib \
|
|
git \
|
|
wget \
|
|
clang \
|
|
linux-headers-5.11.0-40 \
|
|
libbpf-dev
|
|
|
|
RUN wget https://golang.org/dl/go1.17.3.linux-amd64.tar.gz
|
|
RUN tar -C /usr/local -xzf go1.17.3.linux-amd64.tar.gz
|
|
RUN cp /usr/local/go/bin/go /usr/bin/go
|
|
|
|
WORKDIR /delve-bpf/pkg/proc/internal/ebpf/
|
|
|
|
CMD [ "go", "generate", "./..." ]
|