1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2025-06-07 07:56:25 +00:00

Add docker compose file and update README

This commit is contained in:
Robert O'Connor 2017-07-13 14:57:55 -04:00
parent b2de3208cb
commit 0c22eaeba0
No known key found for this signature in database
GPG Key ID: 1DB67AA126AFFA8D
2 changed files with 28 additions and 0 deletions

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
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "2"
services:
aosp:
image: kylemanna/aosp:latest
volumes:
- /tmp/ccache:/ccache
- ~/aosp:/aosp
- ~/.gitconfig:/root/.gitconfig