Sign inSign up

weikinhuang/ionic-android-build

By weikinhuang

•Updated over 10 years ago

Build environment for ionic android apps for generate apks and development

Image
0

9.2K

weikinhuang/ionic-android-build repository overview

⁠Ionic Android Build

Ionic Framework

Ionic Framework⁠ is an open source front-end SDK for developing hybrid mobile apps with web technologies.

⁠Docker Build Base Image

This image provides a base image for which Ionic based android apps can be built upon or extended from to create an development environment.

Build Status Docker imagelayers.io

⁠How to use this image

⁠Use this image to build an ionic app
$ docker run -it --rm --name ionic-app -v "$PWD":/usr/src/app -w /usr/src/app weikinhuang/ionic-android-build create-release-apk
⁠Create a Dockerfile in your Ionic app project
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

⁠Tools included

⁠android-sdk-install

Use this command to install additional android sdk components without user interaction. Useful for docker build instructions.

RUN android-sdk-install android-17
⁠android-wait-for-emulator

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
⁠create-release-apk

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
⁠fastlane's supply

Use this command to automatically publish an apk to the Google Play Developer Console⁠

See supply docs⁠ for usage.

⁠Enabling USB in the container

sudo docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb weikinhuang/ionic-android-build adb list

⁠License

License information⁠ for the software contained in this image.

⁠Supported Docker versions

This image is tested on Docker version 1.10.3.

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

over 10 years ago

docker pull weikinhuang/ionic-android-build