This docker is to build Android Gradle project with Java 7. It is available on Docker Hub https://registry.hub.docker.com/u/jacekmarchwicki/android/ .
Contains:
- Android SDK: r24.4.1
- Build tools: 23.0.2
- Android API: 23
- Support maven repository
- Google maven repository
- Arm emulator: v21
- Platform tools
- Created emulator image named: "Nexus 5"
docker build -t jacekmarchwicki/android .
If building fail you can debug via where 1b372b1f76f2
is partial build
docker run --tty --interactive --rm 1b372b1f76f2 /bin/bash
docker push jacekmarchwicki/android:java7
Change directory to your project directory, than run:
docker run --tty --interactive --volume=$(pwd):/opt/workspace --workdir=/opt/workspace --rm jacekmarchwicki/android:java7 /bin/sh -c "./gradlew build"