This repository contains the Dockerfile and the configuration files to build the Ionic framework for Docker.
This image is using the following tools:
docker build -t mkaag/ionic github.com/mkaag/docker-ionic
docker run -ti -p 8100:8100 -p 35729:35729 mkaag/ionic
If you have your own ionic sources, you can launch it with:
docker run -ti \
-v /path/to/your/ionic-project/:/myApp:rw \
-p 8100:8100 -p 35729:35729 \
mkaag/ionic
With this alias:
alias ionic="docker run -ti \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
-v \$PWD:/myApp:rw \
-p 8100:8100 -p 35729:35729 \
mkaag/ionic ionic"
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
open http://localhost:8100 and everything works.
You can test on your android device, just make sure that debugging is enabled.
cd myApp
ionic platform add android
ionic platform build android
ionic platform run android
Try running:
docker run -ti \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
-v \$PWD:/myApp:rw \
-p 8100:8100 -p 35729:35729 \
mkaag/ionic adb list
Content type
Image
Digest
sha256:36ba23387…
Size
1.4 GB
Last updated
about 10 years ago
docker pull mkaag/ionic