{"user":"aerogear","name":"mobile-sdk","namespace":"aerogear","repository_type":null,"status":1,"status_description":"active","description":"AeroGear Build Container","is_private":false,"is_automated":true,"star_count":4,"pull_count":328,"last_updated":"2016-10-18T11:28:10.735179Z","last_modified":"2024-10-16T13:48:34.145251Z","date_registered":"2016-10-06T11:50:51.160797Z","collaborator_count":0,"affiliation":null,"hub_user":"aerogear","has_starred":false,"full_description":"# AeroGear Digger Build Containers\n\n[![](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/aerogear/mobile-sdk/)\n[![Docker Stars](https://img.shields.io/docker/stars/aerogear/mobile-sdk.svg?style=plastic)](https://registry.hub.docker.com/v2/repositories/aerogear/mobile-sdk/stars/count/)\n[![Docker pulls](https://img.shields.io/docker/pulls/aerogear/mobile-sdk.svg?style=plastic)](https://registry.hub.docker.com/v2/repositories/aerogear/mobile-sdk/)\n\n[![Build Status](https://travis-ci.org/aerogear/digger-build-containers.png)](https://travis-ci.org/aerogear/digger-build-containers)\n[![License](https://img.shields.io/:license-Apache2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\nBuilding 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:\n* Android SDK\n* Apache Cordova CLI (Version 6)\n\n## Project Info\n\n|                 | Project Info  |\n| --------------- | ------------- |\n| License:        | Apache License, Version 2.0  |\n| Build:          | Docker  |\n| Documentation:  | tbd  |\n| Issue tracker:  | https://issues.jboss.org/browse/AGDIGGER  |\n| Mailing lists:  | [aerogear-users](http://aerogear-users.1116366.n5.nabble.com/) ([subscribe](https://lists.jboss.org/mailman/listinfo/aerogear-users))  |\n|                 | [aerogear-dev](http://aerogear-dev.1069024.n5.nabble.com/) ([subscribe](https://lists.jboss.org/mailman/listinfo/aerogear-dev))  |\n| IRC:            | [#aerogear](https://webchat.freenode.net/?channels=aerogear) channel in the [freenode](http://freenode.net/) network.  |\n\n\n## Prerequisites\n\nThe following gives a quick introduction, how to get started using our _AeroGear Digger Build Containers_!\n\n### Platform container\n\nFirst you need a _Platform container_, which provides the desired mobile platform, wrapped in a Linux container.\n\n#### Android Platform container\n\nFor our Android (and Cordova-Android) testing we have used containers provided by [@appunite](https://github.com/appunite/docker). The project has images on [Docker Hub](https://hub.docker.com/r/jacekmarchwicki/android/tags/), but you can build them locally as well.\n\n### Platform volume\n\nOnce a Platform container is availble it needs to be used for the creation of the _Platform volume_:\n\n```\ndocker create -v /opt/android-sdk-linux --name my-android-volume jacekmarchwicki/android:java8-r24-4-1 /bin/true\n```\n\n_NOTE:_ After some time, you will have your _Platform volume_, called `my-android-volume`. \n\n\n## Build container\n\n_NOTE:_ Currently we have no images on Docker Hub....\n\nWith the prerequisites being fulfilled, it's time to build the _Build container_. Go to the `0.1` folder and execute:\n\n```\ndocker build -t aerogear/mobile-sdk . \n```\n\n## Building an App inside of a Linux container\n\nLast 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:\n\n```\ndocker run -it -v /path/to/my/android_or_cordova-app/:/app:z --volumes-from my-android-volume \\\n   -e AG_MOBILE_SDK=/opt/android-sdk-linux \\\n   -e ANDROID_HOME=/opt/android-sdk-linux \\\n   -e PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/mobile-sdk/tools:/opt/android-sdk-linux/tools \\\n   aerogear/mobile-sdk build\n\n```\n\n### Tested applications\n\nWe have tested a few (Android) applications that work with our _Build container_:\n\n* [The FeedHenry Android template apps](https://github.com/feedhenry-templates?utf8=%E2%9C%93\u0026query=android)\n* [The FeedHenry Cordova template apps](https://github.com/feedhenry-templates?utf8=%E2%9C%93\u0026query=cordova-app)\n* [Google IO Schedule App](https://github.com/matzew/iosched/tree/changes)\n* [DevNexus App](https://github.com/matzew/devnexus-android/tree/dummy-google-services)\n* [Memory Game](https://github.com/sromku/memory-game) _random Gradle based OSS project/game_\n\nHave fun!\n","permissions":{"read":true,"write":false,"admin":false},"media_types":["application/vnd.docker.container.image.v1+json"],"content_types":["image"],"categories":[],"immutable_tags_settings":{"enabled":false,"rules":[".*"]},"storage_size":3736132808,"source":null}