Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpful Instructions That Work For Docker #14

Open
laikas123 opened this issue May 1, 2023 · 0 comments
Open

Helpful Instructions That Work For Docker #14

laikas123 opened this issue May 1, 2023 · 0 comments

Comments

@laikas123
Copy link

laikas123 commented May 1, 2023

Assuming you have docker installed the following should work to get you up and running for an environment that will work for this book:

Getting the image and running it:

sudo docker image pull ubuntu:22.10
sudo docker run -ti --privileged ubuntu:22.10 /bin/bash

You should now have a root shell in the new docker image.

Then to get it setup run all of the following:

(can run as .sh script, probably wanna use apt-get install nano to get a text editor)

apt-get update
apt-get install -y apt-transport-https ca-certificates curl clang llvm jq
apt-get install -y libelf-dev libpcap-dev libbfd-dev binutils-dev build-essential make
apt-get install -y linux-tools-common linux-tools-5.15.0-41-generic bpfcc-tools
apt-get install -y python3-pip
apt-get install -y git
git clone --recurse-submodules https://github.com/lizrice/learning-ebpf
cd learning-ebpf
cd libbpf/src
make install
cd ../..
cd ..
git clone --recurse-submodules https://github.com/libbpf/bpftool.git
cd bpftool/src
make install

You are good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant