A easy to use AOSP build environment as a Docker image.
This is an image which provides a build environment (includes any tools required for building AOSP), you should use it as a shell, then do anything you wanted. It isn't a wrapper for Repo
, Make
or something else.
Use it as a independent shell, and mount a local path to save source and result:
$ docker run --rm -it \
-v path/to/your/source/folder:/root \ # /root is reccomanded because it's the workdir
thnuiwelr/aosp-build-environment bash
Once you entered the shell, you can start building from Downloading the Source#Initializing a Repo client, every tools required is ready.
You can let it run in background as well, just add your own command and -d
option:
$ docker run --rm -it \
-v path/to/your/source/folder:/root \ # /root is reccomanded because it's the workdir
-d
thnuiwelr/aosp-build-environment "repo --help" # Will be wrapped as "sh -c repo --help"
Running in background is pretty useful in long time buildings.
Some custom ROMs require extra packages to build. Here are the packages I included in the build:
-
bc
-
imagemagick
-
ccache
-
schedtool
These packages are included into the image directly.
GPL v3, feel free to contribute it.