Sign inSign up

aerogear/mobile-sdk

By aerogear

•Updated almost 10 years ago

AeroGear Build Container

Image
4

1.1K

aerogear/mobile-sdk repository overview

⁠AeroGear Digger Build Containers

Docker Stars Docker pulls

Build Status License

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:https://issues.jboss.org/browse/AGDIGGER⁠
Mailing lists:aerogear-users⁠ (subscribe⁠)
aerogear-dev⁠ (subscribe⁠)
IRC:#aerogear⁠ channel in the freenode⁠ network.

⁠Prerequisites

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!

Tag summary

Content type

Image

Digest

Size

385.8 MB

Last updated

almost 10 years ago

docker pull aerogear/mobile-sdk