Code Monkey home page Code Monkey logo

vagrant-android's Introduction

Vagrant image with Android SDK & NDK

Automated provisioning and configuration of an Ubuntu VM containing the Android development environment, including Android SDK, Android NDK using the Vagrant DevOps tool with Chef and shell-scripts.

This automated VM installation and configuration uses the DevOps tool Vagrant which works with both VirtualBox (free) and VMware Fusion & Workstation (paid plug-in) in addition to several Community Chef Cookbooks.

Currently, it will provision an Android VM for development with the following specifications:

  • Ubuntu Trusty64 VM
    • Memory size: 2048 MB
    • 2 vCPU
  • Ubuntu Unity Desktop as the UI launched at startup
    • See the provision.sh section "Install a desktop for the Android graphical tooling" for other options.
  • Android SDK r24.4.1
  • Android NDK r11c

Install Vagrant

Note: Vagrant has a prerequisite of an installed and functioning version of one of the following virtualization products,

  1. Download and install the latest version of Vagrant for your OS from https://www.vagrantup.com/downloads.html

  2. If using VMware, install the purchased VMware Provider Plug-in as mentioned in the documentation

Install the Android VM

Note: All the software needed is automatically downloaded as it is needed. Several of the downloads are somewhat large. Patience is a virtue while the automated installation is running.

  1. From your android-vm directory,

     $ git submodule init
     $ git submodule update
    
  2. Run the following to start Vagrant and kick-off the process to build an Android VM,

    For VirtualBox,

     $ vagrant up
    

    For VMware Fusion,

     $ vagrant up --provider=vmware_fusion 
    

    For VMware Workstation

     $ vagrant up --provider=vmware_workstation 
    

    Note: As the Android VM build runs you will see various types of screen output from Vagrant, Chef and Shell scripts -- some of the dependency downloads and compilations require a bit of time. Again, Patience is a virtue.

  3. Once the Android VM build provisioning process is complete, run the following to login via SSH,

     $ vagrant ssh
    

References

  1. Vagrant v2 documentation
  2. http://www.vagrantbox.es/
  3. Chef Cookbooks

vagrant-android's People

Contributors

ddfreiling avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sanderstar hegyre

vagrant-android's Issues

missing sqlite-dev cookbook

Hello,

Seems like the sqlite-dev cookbook (from vagrantfile) is missing.
Is it mandatory for the next steps (like Android NDK, SDK and so on), or I can simply comment it ?

==> trusty64_android: resolving cookbooks for run list: ["apt", "git", "build-essential", "java", "sqlite-dev", "vim"]
==> trusty64_android: ================================================================================
==> trusty64_android: Error Resolving Cookbooks for Run List:
==> trusty64_android: ================================================================================
==> trusty64_android: Missing Cookbooks:
==> trusty64_android: ------------------
==> trusty64_android: No such cookbook: sqlite-dev
==> trusty64_android: Expanded Run List:
==> trusty64_android: ------------------
==> trusty64_android: * apt
==> trusty64_android: * git
==> trusty64_android: * build-essential
==> trusty64_android: * java
==> trusty64_android: * sqlite-dev
==> trusty64_android: * vim
==> trusty64_android: System Info:
==> trusty64_android: ------------
==> trusty64_android: chef_version=14.12.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.