Public | Automated Build

Last pushed: 2 years ago
Short Description
AeroGear Build Container
Full Description

AeroGear Digger Build Containers

Building mobile applications inside a Linux container has benefits of a true isolation, for each build. This repository contains Docker-formatted container images for building supported mobile platforms:

  • Android SDK
  • Apache Cordova CLI (Version 6)

Project Info

Project Info
License: Apache License, Version 2.0
Build: Docker
Documentation: tbd
Issue tracker:
Mailing lists: aerogear-users (subscribe)
aerogear-dev (subscribe)
IRC: #aerogear channel in the freenode network.


The following gives a quick introduction, how to get started using our AeroGear Digger Build Containers!

Platform container

First you need a Platform container, which provides the desired mobile platform, wrapped in a Linux container.

Android Platform container

For our Android (and Cordova-Android) testing we have used containers provided by @appunite. The project has images on Docker Hub, but you can build them locally as well.

Platform volume

Once a Platform container is availble it needs to be used for the creation of the Platform volume:

docker create -v /opt/android-sdk-linux --name my-android-volume jacekmarchwicki/android:java8-r24-4-1 /bin/true

NOTE: After some time, you will have your Platform volume, called my-android-volume.

Build container

NOTE: Currently we have no images on Docker Hub....

With the prerequisites being fulfilled, it's time to build the Build container. Go to the 0.1 folder and execute:

docker build -t aerogear/mobile-sdk . 

Building an App inside of a Linux container

Last but not least you need a folder containing the source code of your (Android) mobile application, the following command runs a build inside of a Linux container, using the above containers and volumes:

docker run -it -v /path/to/my/android_or_cordova-app/:/app:z --volumes-from my-android-volume \
   -e AG_MOBILE_SDK=/opt/android-sdk-linux \
   -e ANDROID_HOME=/opt/android-sdk-linux \
   -e PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/mobile-sdk/tools:/opt/android-sdk-linux/tools \
   aerogear/mobile-sdk build

Tested applications

We have tested a few (Android) applications that work with our Build container:

Have fun!

Docker Pull Command