Deprecated: This repository is deprecated and no longer maintained!
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 | |
---|---|
License: | Apache License, Version 2.0 |
Build: | Docker |
Documentation: | tbd |
Issue tracker: | https://issues.jboss.org/browse/AGDIGGER |
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!
First you need a Platform container, which provides the desired mobile platform, wrapped in a Linux 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.
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
.
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 .
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
We have tested a few (Android) applications that work with our Build container:
- The FeedHenry Android template apps
- The FeedHenry Cordova template apps
- Google IO Schedule App
- DevNexus App
- Memory Game random Gradle based OSS project/game
Have fun!