Ionic image for CI with karma and protractor + android builds
50K+
A ionic 1/2 image to be used with Gitlab CI
docker run -ti --rm -p 8100:8100 -p 35729:35729 marcoturi/ionic
If you have your own ionic sources, you can launch it with:
docker run -ti --rm -p 8100:8100 -p 35729:35729 -v /path/to/your/ionic-project/:/myApp:rw marcoturi/ionic
With this alias:
alias ionic="docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \$PWD:/myApp:rw marcoturi/ionic ionic"
Due to a bug in ionic, if you want to use ionic serve, you have to use --net host option :
alias ionic="docker run -ti --rm --net host --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v \$PWD:/myApp:rw marcoturi/ionic ionic"
Know you need gradle for android, I suggest to mount ~/.gradle into /root/.gradle to avoid downloading the whole planet again and again
you can follow the ionic tutorial (except for the ios part...) without having to install ionic nor cordova nor nodejs on your computer.
ionic start myApp tabs
cd myApp
ionic serve
# If you didn't used --net host, be sure to chose the ip address, not localhost, or you would not be able to use it
open http://localhost:8100 and everything works.
You can test on your android device, just make sure that debugging is enabled.
cd myApp
ionic cordova platform add android
ionic cordova build android
ionic cordova run android
docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v \$PWD:/myApp:rw marcoturi/ionic adb devices your device should appearadb devices on my computer
adb kill-server on your computer before using this imageContent type
Image
Digest
Size
1.1 GB
Last updated
over 6 years ago
docker pull marcoturi/ionic