Sign inSign up

mkaag/ionic

By mkaag

Updated about 10 years ago

Image
4

2.5K

mkaag/ionic repository overview

docker-ionic

Docker Hub

This repository contains the Dockerfile and the configuration files to build the Ionic framework for Docker.

Base Docker Image

This image is using the following tools:

  • latest node, ionic and cordova
  • Android SDK Tools, revision 24.2
  • Android SDK Build Tools, revision 22
  • Android SDK Platform, x86 API level 22
Installation
docker build -t mkaag/ionic github.com/mkaag/docker-ionic
Usage
Basic usage
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
Automation

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.

Android tests

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
Troubleshooting
The application is not installed on my android device

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

Tag summary

Content type

Image

Digest

sha256:36ba23387

Size

1.4 GB

Last updated

about 10 years ago

docker pull mkaag/ionic