Commit 5d8b4bf7
Changed files (2)
script
script/vm_bootstrap.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+apt-get update
+apt-get install -y nginx
+apt-get install -y imagemagick
+apt-get install -y postgresql-9.1
Vagrantfile
@@ -7,16 +7,18 @@ Vagrant.configure("2") do |config|
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
- config.vm.box = "base"
+ config.vm.box = "precise32"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
- # config.vm.box_url = "http://domain.com/path/to/above.box"
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
- # config.vm.network :forwarded_port, guest: 80, host: 8080
+ #config.vm.network :forwarded_port, guest: 80, host: 8080
+ config.vm.network :forwarded_port, guest: 3000, host: 3000
+ config.vm.provision :shell, :path => 'script/vm_bootstrap.sh'
# Create a private network, which allows host-only access to the machine
# using a specific IP.