1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2026-08-22 13:53:00 +00:00

Merge pull request #25 from robbyoconnor/add-docker-compose

Add docker compose file and update README
This commit is contained in:
Kyle Manna
2017-07-14 07:54:31 -07:00
committed by GitHub
2 changed files with 28 additions and 0 deletions
+19
View File
@@ -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 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. `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 Issues
------ ------
@@ -89,3 +106,5 @@ Tested
* Android Lollipop `android-5.0.2_r1` * Android Lollipop `android-5.0.2_r1`
* Android Marshmallow `android-6.0.1_r79` * Android Marshmallow `android-6.0.1_r79`
* Android Nougat `android-7.0.0_r14` * Android Nougat `android-7.0.0_r14`
[Docker Compose]: https://docs.docker.com/compose
+9
View File
@@ -0,0 +1,9 @@
version: "2"
services:
aosp:
image: kylemanna/aosp:latest
volumes:
- /tmp/ccache:/ccache
- ~/aosp:/aosp
- ~/.gitconfig:/root/.gitconfig