3

I'm very much new to AOSP and I'm trying setup the complete AOSP on the Docker to build a Docker Image like Alpine or Ubuntu image, if it not possible please let me know the reasons why it is not possible to setup AOSP inside the docker image.

Or Do I need to write the Dockerfile to build the image?

Please help me if it possible with some good snippets.

Thanks in Advance :)

pix data
  • 731
  • 7
  • 14
  • you can look into this https://github.com/sakebook/docker-android-alpine or https://github.com/Trumeet/AOSP-Build-Environment-Docker – Adiii Jul 30 '20 at 06:47
  • Thank you for the quick responce @Adiii ...ill go through ...thanks once again :) – pix data Jul 30 '20 at 06:53

1 Answers1

7

Android team has provided a Dockerfile, docker build command to build the image, and docker run command to run a container : https://android.googlesource.com/platform/build/+/master/tools/docker

As mentioned there, you can mount your local AOSP source tree to the container using -v option in docker run command.

I have not tried to build AOSP in a Docker container. But in this question, @VasileM has mentioned that he uses the Android provided Docker instance to build AOSP.

Lakindu
  • 1,010
  • 8
  • 14