Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed May 2, 2014
1 parent 7f93b7e commit 8774bc7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.DS_Store
4 changes: 2 additions & 2 deletions Vagrantfile
@@ -1,8 +1,8 @@
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :shell, :path => "node-bootstrap.sh"
config.vm.network :private_network, ip: '10.0.33.34'
config.vm.provision :shell, :path => "vagrant-bootstrap.sh"
config.vm.network :forwarded_port, host: 3000, guest: 3000

config.vm.provider :virtualbox do |vb|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
Expand Down
40 changes: 0 additions & 40 deletions node-bootstrap.sh

This file was deleted.

33 changes: 33 additions & 0 deletions vagrant-bootstrap.sh
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

# Get root up in here
sudo su

# Add MongoDB to apt
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list

# Update and begin installing some utility tools
apt-get -y update
apt-get install -y python-software-properties
apt-get install -y vim git subversion curl
apt-get install -y memcached build-essential

# Add nodejs repo
add-apt-repository -y ppa:chris-lea/node.js
apt-get -y update

# Install nodejs
apt-get install -y nodejs

# Upgrade npm
npm update -g npm

# Install latest stable version of MongoDB
apt-get install -y mongodb-org

# Install latest stable version of redis server
apt-get install -y redis-server

# Victory!
echo "You're all done!"

0 comments on commit 8774bc7

Please sign in to comment.