Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

A docker image to provide a systemless AOSP build environment

License

Notifications You must be signed in to change notification settings

Trumeet/AOSP-Build-Environment-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Automated build Docker Build Status Docker Pulls Image Layers Image Size Docker Stars

AOSP build environment on Docker

A easy to use AOSP build environment as a Docker image.

Things to remember

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.

Usage

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.

Building custom ROMs

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.

License

GPL v3, feel free to contribute it.

About

A docker image to provide a systemless AOSP build environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published