Build environment for Android Open Source Project Kitkat and older versions
1.4K
Docker image for building Android Open Source Project (AOSP) Kitkat (4.4.x) and older verions.
Note: For newer versions, e.g. Lollipop, please check tedwang-tw/docker-aosp-v5.
Pull the image from the Docker Hub. This is the recommended method of installation as it is easier to update image.
docker pull tedwang/aosp-v4:latest
Alternately you can build the image locally.
git clone https://github.com/tedwang-tw/docker-aosp-v4.git
cd docker-aosp-v4
docker build -t tedwang/aosp-v4 .
Here you can swap the base image with either tedwang/aosp-base12 or -base14 by manually modifying "FROM" command in Dockerfile.
Note: If you'd like the original monolithic build, you can clone by the branch "monolithic":
git clone https://github.com/tedwang-tw/docker-aosp-v4.git -b monolithic
cd docker-aosp-v4
docker build -t tedwang/aosp-v4:monolithic .
You can launch the image using the docker command line, suppose you have prepared a folder for aosp download in the local host, e.g. ~/AOSP,
docker run --name='aosp-v4' -it --rm \
-v ~/AOSP:/home/android/aosp \
tedwang/aosp-v4 \
/bin/bash
The /home/android/aosp is the mounted point inside the container.
After entering the container, you can operate as the normal developing:
0 android@ ~ $ cd aosp
0 android@ ~/aosp $ git config --global user.email "[email protected]"
0 android@ ~/aosp $ git config --global user.name "My Name"
0 android@ ~/aosp $ repo init -u https://android.googlesource.com/platform/manifest
0 android@ ~/aosp $ repo sync
0 android@ ~/aosp $ source build/envsetup.sh
0 android@ ~/aosp $ lunch ......
Ubuntu 12.04
Default user account: name=android, password=android
Toolchains as from http://source.android.com/source/initializing.html
Repo tool as from http://source.android.com/source/downloading.html
Content type
Image
Digest
sha256:de0631e2a…
Size
403.9 MB
Last updated
almost 11 years ago
docker pull tedwang/aosp-v4