Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 914 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 914 Bytes

android-java7

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"

Build image

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

Push build version to repository

docker push jacekmarchwicki/android:java7

Usage

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"