Ionic Framework is an open source front-end SDK for developing hybrid mobile apps with web technologies.
This image provides a base image for which Ionic based android apps can be built upon or extended from to create an development environment.
$ docker run -it --rm --name ionic-app -v "$PWD":/usr/src/app -w /usr/src/app weikinhuang/ionic-android-build create-release-apk
FROM weikinhuang/ionic-android-build
# expose the ionic development ports
EXPOSE 8100 35729
# copy project
COPY . /data
# set up ionic requirements
WORKDIR /data
# restore ionic state
RUN npm install --quiet
RUN bower install --quiet --allow-root
RUN ionic state reset
$ docker run -it --rm --name ionic-app -v "$PWD"/www:/data/www -w /data -p 8100:8100 -p 35729:35729 your-ionic-app create-release-apk
Use this command to install additional android sdk components without user interaction. Useful for docker build instructions.
RUN android-sdk-install android-17
Use this command to wait for an headless android emulator.
See Paul Estrada blog on how to create a headless android image.
# start emulator
$ android -avd ...
$ android-wait-for-emulator
# run tests
Use this command to generate a release android apk file to platforms/android/build/outputs/apk/*-release.apk
.
Automatically removes the console plugin per the Ionic publishing docs.
$ create-release-apk
Use this command to automatically publish an apk to the Google Play Developer Console
See supply docs for usage.
sudo docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb weikinhuang/ionic-android-build adb list
License information for the software contained in this image.
This image is tested on Docker version 1.10.3.