File: README.md

package info (click to toggle)
golang-github-cilium-ebpf 0.17.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,684 kB
  • sloc: ansic: 1,259; makefile: 127; python: 113; awk: 29; sh: 24
file content (32 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# `cilium/ebpf` LLVM Builder Image

This is a simple Docker image to provide reproducible eBPF ELF builds across
contributors' workstations. This standardizes on a single environment used to
regenerate e.g. testdata ELFs and does not depend on the toolchain installed
on the host machine.

Additionally, it reduces drift in the bytecode committed to the repository over
time as the same exact clang + llc version is used throughout the development
lifecycle. Only when upgrading or rebuilding the Docker image would changes in
.elf files be expected (assuming the .c files are untouched).

## Building

Building the image requires Docker. Run the build with:

`make build`

This updates the `VERSION` file. Commit it and submit a PR upstream.

### Regeneration Testdata on non-x86 platforms

Before running `make`, ensure [Docker buildx](https://docs.docker.com/buildx/working-with-buildx/)
is enabled. Additionally `QEMU user` and `binfmt` should be installed. On a Debian based distribution
the command to add them is `apt install qemu-user-static binfmt-support`.


## Pushing

After building, push the image to the Docker registry specified in `IMAGE` with:

`make push`