Sign inSign up

mkitek/docker-android-build-box

By mkitek

Updated over 9 years ago

A docker image build with Android build environment.

Image
3

890

mkitek/docker-android-build-box repository overview

Docker Android Build Box

Build Status

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
  • Android build tool 24.0.2
  • Android NDK r13
  • extra-android-m2repository
  • extra-google-google_play_services
  • extra-google-m2repository

Docker Pull Command

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

docker pull mingc/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 mingc/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: mingc/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 docker build to build your image. The image itself up to 5.5 GB, check your free disk space before build it.

docker build -t android-build-box .

Contribution

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

References

Tag summary

Content type

Image

Digest

Size

2.2 GB

Last updated

over 9 years ago

docker pull mkitek/docker-android-build-box