File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:18.04
2+
3+ # Fetch all essential packages for building the kernel
4+ RUN apt-get update
5+ RUN apt-get install -y git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig wget python3 git make clang gcc bc
6+ RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo
7+ RUN chmod +x /bin/repo
8+
9+ # Get env ready for fetching source code of kernel
10+ RUN git config --global user.email "you@example.com" && \
11+ git config --global user.name "Your Name"
Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ https://cloudfuzz.github.io/android-kernel-exploitation/
2626</div >
2727
2828
29+ ## Docker for building kernel
30+ ``` bash
31+ # Build the docker image
32+ docker build -t and-build-env .
33+ # Run the docker
34+ docker run -d --rm -it and-build-env
35+ # Get shell in docker image to do further work
36+ ```
37+
2938## Author
3039
3140** Ashfaq Ansari ([ @HackSysTeam ] ( https://twitter.com/HackSysTeam ) )** of ** [ CloudFuzz] ( https://cloudfuzz.io ) ** .
You can’t perform that action at this time.
0 commit comments