Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.21 KB

File metadata and controls

28 lines (19 loc) · 1.21 KB

Ionic Cordova Android Vagrant Docker

A Vagrant and Docker image complete with Ionic, Node, Cordova, and Android installed for quick development of apps.

To install, download and install Vagrant for your platform, then download and install VirtualBox.

Once Vagrant and VirtualBox are installed, you can download the latest release of this GitHub repo, and unzip it. cd into the unzipped folder and run:

$ vagrant up
$ vagrant ssh

This will download and install the image, and then go through the dependencies and install them one by one. vagrant ssh will connect you to the image and give you a bash prompt. Once everything completes, you'll have a working box to build your apps on Android.

The image also has support for connected USB Android devices. To test whether devices are connected, you can run (from the box):

$ sudo /home/vagrant/android-sdk-linux/platform-tools/adb devices

If that does not work, or shows ????? permissions, then run:

sudo /home/vagrant/android-sdk-linux/platform-tools/adb kill-server
sudo /home/vagrant/android-sdk-linux/platform-tools/adb start-server