Public | Automated Build

Last pushed: 7 months ago
Short Description
adfaf
Full Description

Docker Android Build Box

Introduction

A docker image build with Android build environment.

What's Inside

It include following components:

  • Ubuntu 16.04
  • Android SDK 16 17 18 19 20 21 22 23 24 25
  • Android build tools 21.1.2 22.0.1 23.0.1 23.0.2 23.0.3 24 24.0.1 24.0.2 24.0.3 25 25.0.1 25.0.2 25.2.3
  • Android NDK r13b
  • extra-android-m2repository
  • extra-google-google_play_services
  • extra-google-m2repository

Docker Pull Command

The docker image is publicly automated build on Docker Hub based on Dockerfile in this repo, so there is no hidden staff in image. To pull the latest docker image:

docker pull tracyma/docker-android-build-box:latest

Usage

Use image to build Android project

You can use this docker image to build your Android project with a single docker command:

cd <android project directory>  # change working directory to your project root directory.
docker run --rm -v `pwd`:/project tracyma/docker-android-build-box bash -c 'cd /project; ./gradlew build'

Use image for Bitbucket pipeline

If you have Android code in Bitbucket and want to use it pipeline to build your Android code, you can simply specific this docker image.
Here is an example of bitbucket-pipelines.yml

image: tracyma/docker-android-build-box:latest

pipelines:
  default:
    - step:
        script:
          - chmod +x gradlew
          - ./gradlew assemble

Docker Build Image

If you want to build docker image by yourself, you can use following docker build command to build your image.
The image itself up to 5.5 GB, check your free disk space before build it.

docker build -t docker-android-build-box .

Contribution

If you want to enhance this docker image for fix something, feel free to send pull request.

References

Docker Pull Command
Owner
tracyma

Comments (0)