Skip to content

Commit 83ae446

Browse files
authored
Merge pull request #10 from ameetsaahu/master
Added Dockerfile
2 parents 269d746 + bdaab5d commit 83ae446

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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"

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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)**.

0 commit comments

Comments
 (0)