Ionic-docker
A ionic 2 image to be used for local development or for CI process with docker-friendly services like Gitlab CI
Inspired by marcoturi:
Features
Node
Npm or Yarn
Ionic
Cordova
Android sdk and build tools
Ready to run Google Chrome for e2e tests
Ruby
scss-lint tool
Usage
If you have your own ionic sources, you can launch it with:
Automation
With this alias:
Due to a bug in ionic, if you want to use ionic serve, you have to use --net host option :
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.
open http://localhost:8100 and everything works.
Android tests
You can test on your android device, just make sure that debugging is enabled.
##FAQ
The application is not installed on my android device
Try
docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v \$PWD:/myApp:rw agileek/ionic-framework adb devicesyour device should appear
The adb devices show nothing whereas I can see it when I do
adb deviceson my computerYou can't have adb inside and outside docker at the same time, be sure to
adb kill-serveron your computer before using this image