From 0c22eaeba089f298dfc370ccfd7371722a4213e5 Mon Sep 17 00:00:00 2001 From: Robert O'Connor Date: Thu, 13 Jul 2017 14:57:55 -0400 Subject: [PATCH] Add docker compose file and update README --- README.md | 19 +++++++++++++++++++ docker-compose.yml | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 7914140..82153ca 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,23 @@ The `aosp` wrapper doesn't work well with setting up environments, but with some bash magic, this can be side stepped with short little scripts. See `tests/build-nougat.sh` for an example of a complete fetch and build of AOSP. +[Docker Compose][] +------ + +A [Docker Compose][] file is provided in the root of this repository, you can tweak it as need be: + +```yaml +version: "2" + +services: + aosp: + image: kylemanna/aosp:latest + volumes: + - /tmp/ccache:/ccache + - ~/aosp:/aosp +``` +Example run: `docker-compose run --rm aosp repo sync -j4` -- your android build directory will be in `~/aosp`. + Issues ------ @@ -89,3 +106,5 @@ Tested * Android Lollipop `android-5.0.2_r1` * Android Marshmallow `android-6.0.1_r79` * Android Nougat `android-7.0.0_r14` + +[Docker Compose]: https://docs.docker.com/compose diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cd977c9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "2" + +services: + aosp: + image: kylemanna/aosp:latest + volumes: + - /tmp/ccache:/ccache + - ~/aosp:/aosp + - ~/.gitconfig:/root/.gitconfig