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:
parent
b2de3208cb
commit
0c22eaeba0
19
README.md
19
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
|
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
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
aosp:
|
||||||
|
image: kylemanna/aosp:latest
|
||||||
|
volumes:
|
||||||
|
- /tmp/ccache:/ccache
|
||||||
|
- ~/aosp:/aosp
|
||||||
|
- ~/.gitconfig:/root/.gitconfig
|
Loading…
x
Reference in New Issue
Block a user