Code Monkey home page Code Monkey logo

expfactory-vm's Introduction

expfactory-vm: A virtual machine to deploy experiment factory infrastructure

Setting up the virtual machine

  1. Install [VirtualBox] (https://www.virtualbox.org/wiki/Downloads)

  2. Install [Vagrant] (http://www.vagrantup.com/downloads) - Vagrant is a provisioning system that sets up the virtual machine.

  3. If you don't already have it, install [git] (https://git-scm.com/downloads)

  4. cd to the directory where you want to house the project, and then clone the vagrant setup: git clone https://github.com/expfactory/expfactory-vm.git

  5. cd into the vm directory: cd expfactory-vm

  6. (instruction here for cloning/generating experiment)

  7. set up the vagrant VM (which may take a little while): vagrant up

  8. Step 7 will automatically deploy the infrastructure to the configuration on Amazon that you have specified.

Log in with SSH

If you wish to log into the virtual machine and programatically access the application, you can do so with:

  vagrant ssh

Setting up the virtual machine on aws

Make sure you have the most up-to-date version of vagrant, and install vagrant-aws. If you do not, you will see this error (version 1.6.5)

   vagrant-share can't be installed without vagrant login (RuntimeError)

After updating:

  vagrant --version
  Vagrant 1.7.2

Then you should install vagrant-aws, which will allow you to provision the Amazon machine.

  sudo vagrant plugin install vagrant-aws
  Installing the 'vagrant-aws' plugin. This can take a few minutes...
  Installed the plugin 'vagrant-aws (0.6.0)'!

You then need to add an aws compatible box. I found this box on the vagrant-aws plugin github repository:

  vagrant box add aws https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box

The vagrantfile included in this repo has instructions to provision the machine on Amazon using this box. Then to launch the instance:

  vagrant up --provider=aws

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.