Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wayofthepie/bpf-dev-image
https://github.com/wayofthepie/bpf-dev-image
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wayofthepie/bpf-dev-image
- Owner: wayofthepie
- Created: 2018-07-01T19:00:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T19:47:55.000Z (over 6 years ago)
- Last Synced: 2024-11-06T03:44:39.607Z (about 2 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# BPF Development Environment
A docker image for working with BPF, specifically BCC
(BPF Compiler Chain, see https://github.com/iovisor/bcc/)# Building and Running
To build simply run `./build.sh` passing an image tag as the only param:```
$ ./build.sh bccdev
```To allow programs inside the container to trace you will need to manually mount in `/sys` as `rw`
and the container will need to be run privileged -
there may be more fine grained permissions that can be applied but I'm not sure what yet:```
$ docker run --privileged -ti \
--net host \
-v /sys:/sys:rw \
-e DISPLAY=$DISPLAY \
-v "$HOME/.Xauthority:/root/.Xauthority:rw" \
bccdev \
bashroot@27309f7560e7:/# /usr/share/bcc/tools/opensnoop
PID COMM FD ERR PATH
18454 opensnoop -1 2 /etc/localtime
1489 pool 11 0 /etc/services
...
```By default, if you do not specify `bash` as the command to run, VSCode will launch.