Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:18.04

# Fetch all essential packages for building the kernel
RUN apt-get update
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
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo
RUN chmod +x /bin/repo

# Get env ready for fetching source code of kernel
RUN git config --global user.email "you@example.com" && \
git config --global user.name "Your Name"
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ https://cloudfuzz.github.io/android-kernel-exploitation/
</div>


## Docker for building kernel
```bash
# Build the docker image
docker build -t and-build-env .
# Run the docker
docker run -d --rm -it and-build-env
# Get shell in docker image to do further work
```

## Author

**Ashfaq Ansari ([@HackSysTeam](https://twitter.com/HackSysTeam))** of **[CloudFuzz](https://cloudfuzz.io)**.
Expand Down