Sign inSign up

matze025/android-ionic

By matze025

Updated over 7 years ago

Docker container for building android app and ionic

Image
0

698

matze025/android-ionic repository overview

docker-android-ionic

An Docker image for building Android and Ionic.

Building Ionic

With the follwing command you can serve an IonicApp in the current directory. Replace serve with the ionic command you like for other usages.

docker run -it --rm -p 8100:8100 -p 35729:35729 --privileged -v ~/.gradle:/root/.gradle -v \$PWD:/workdir:rw matze025/android-ionic ionic serve

Building Android

With the follwing command you build am Android-App in the current directory.

docker run -it --rm -p 8100:8100 -p 35729:35729 --privileged -v ~/.gradle:/root/.gradle -v \$PWD:/workdir:rw matze025/android-ionic ./gradlew assembleRelease

Use npm and ionic with a bash alias

Install these aliases in your shell. E.g. by putting them in the bash_profile or zshrc.

alias npm="docker run -it --rm -p 8100:8100 -p 35729:35729 --privileged -v ~/.gradle:/root/.gradle -v \$PWD:/workdir:rw matze025/android-ionic npm"
alias ionic="docker run -it --rm -p 8100:8100 -p 35729:35729 --privileged -v ~/.gradle:/root/.gradle -v \$PWD:/workdir:rw matze025/android-ionic ionic"

Afterwords you can use it, as normal. E.g. You can do

ionic start --no-git myApp blank
cd myApp
ionic serve

Updating

docker pull matze025/android-ionic:latest

Tag summary

Content type

Image

Digest

Size

2.3 GB

Last updated

over 7 years ago

docker pull matze025/android-ionic