Docker container for building android app and ionic
698
An Docker image for building Android and 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
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
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
docker pull matze025/android-ionic:latest
Content type
Image
Digest
Size
2.3 GB
Last updated
over 7 years ago
docker pull matze025/android-ionic