Docker container for compiling static eBPF applications with libbpf-bootstrap.
Usage:
- Put code files in directory
/code
, such ashelloworld.bpf.c
andhelloworld.c
- Modify the environment variable
PROGRAM_NAME
in thedocker-compose.yml
file, such ashelloworld
- Run command:
docker compose up libbpf-bootstrap
, the program will be automatically compiled
Alternatively, you can use the following command to start a remote eBPF compilation test environment that can be accessed through the browser:
docker compose up code-server