Skip to content

Commit eb59cb4

Browse files
committed
Add docker compose file and update README
1 parent b2de320 commit eb59cb4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,23 @@ The `aosp` wrapper doesn't work well with setting up environments, but with
7272
some bash magic, this can be side stepped with short little scripts. See
7373
`tests/build-nougat.sh` for an example of a complete fetch and build of AOSP.
7474

75+
[Docker Compose][]
76+
------
77+
78+
A [Docker Compose][] file is provided in the root of this repository, you can tweak it as need be:
79+
80+
```yaml
81+
version: "2"
82+
83+
services:
84+
aosp:
85+
image: kylemanna/aosp:latest
86+
volumes:
87+
- /tmp/ccache:/ccache
88+
- ~/aosp:/aosp
89+
```
90+
Example run: `docker-compose run --rm aosp repo sync -j4` -- your android build directory will be in `~/aosp`.
91+
7592
Issues
7693
------
7794

@@ -89,3 +106,5 @@ Tested
89106
* Android Lollipop `android-5.0.2_r1`
90107
* Android Marshmallow `android-6.0.1_r79`
91108
* Android Nougat `android-7.0.0_r14`
109+
110+
[Docker Compose]: https://docs.docker.com/compose

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "2"
2+
3+
services:
4+
aosp:
5+
image: kylemanna/aosp:latest
6+
volumes:
7+
- /tmp/ccache:/ccache
8+
- ~/aosp:/aosp

0 commit comments

Comments
 (0)