Git Product home page Git Product logo

docker-android-builder's Introduction

docker-android-builder

Create a Docker based environment for Android Open Source Project (AOSP) based building

This Dockerfile will create a docker container which is based on Trusted Docker Ubuntu 14.04 build. It will install the "repo" utility and any other build dependencies which are required to compile your flavor of Android.

NOTE: Remember that Android is a huge project. It will consume a large amount of disk space (~80 GB) and it can easily take hours to build.


How to run/build

  • You will need to install Docker to proceed!
  • If an image does not exist, docker build is executed first
  1. Clone the repo
git clone https://github.com/ikke-t/docker-android-builder
cd docker-android-builder
git checkout remotes/origin/zombi-lp5.1
  1. Update the build variables located in "config/android-build-vars.sh"
  • Optional Update "config/build-android.sh" with the commands needed to build Android. The steps for building Android vary between devices and distributions. If you are new to this, you probably want to run the commands manually before using the automated build file
  1. Start up Docker
./run.sh

ADDITIONAL NOTES:

  • The container uses a text-based window manager and terminal multiplexer called Byobu to run the shell.

  • Once in the container, begin the build process your desired Android distribution. ONLY If you have updated the build-android script, simply run:

build-android

Tested Android builds


TODO

FAQ

Q: Do I need Oracle Java?
A: In most cases, no. However, there have been instances where functionality that only exist in Oracle Java has been committed to AOSP projects (Example).

Q: Using adb devices, on the host system I can see my USB connected device. Why is it not listed through Docker?
A: The USB port needs to be exposed to Docker. See this Stack Overflow post

More information

docker-android-builder's People

Contributors

ikke-t avatar kaystrobach avatar stucki avatar swrh avatar thrilleratplay avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.