github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/website/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
     5  VAGRANTFILE_API_VERSION = "2"
     6  
     7  $script = <<SCRIPT
     8  sudo apt-get -y update
     9  
    10  # RVM/Ruby
    11  sudo apt-get -y install curl git
    12  curl -sSL https://rvm.io/mpapis.asc | gpg --import -
    13  curl -sSL https://get.rvm.io | bash -s stable
    14  . ~/.bashrc
    15  . ~/.bash_profile
    16  rvm install 2.2.2
    17  rvm --default use 2.2.2
    18  gem install bundler
    19  
    20  # Middleman deps
    21  cd /vagrant
    22  bundle
    23  
    24  # JS stuff
    25  sudo apt-get install -y python-software-properties
    26  sudo add-apt-repository -y ppa:chris-lea/node.js
    27  sudo apt-get update -y
    28  sudo apt-get install -y nodejs
    29  
    30  # Get JS deps
    31  # cd /vagrant/source
    32  # npm install
    33  SCRIPT
    34  
    35  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    36    config.vm.box = "bento/ubuntu-12.04"
    37    config.vm.network "private_network", ip: "33.33.30.10"
    38    config.vm.network "forwarded_port", guest: 4567, host: 8080
    39    config.vm.provision "shell", inline: $script, privileged: false
    40    config.vm.synced_folder ".", "/vagrant"
    41  end