Skip to content

Commit

Permalink
adding instructions to build stripe-ctf-base, and using it as the bas…
Browse files Browse the repository at this point in the history
…e in the Vagrant file. I've also hosted the box in my Dropbox account, so Vagrant can auto-download it if necessary
  • Loading branch information
e28eta committed Feb 9, 2013
1 parent 6ffcf1d commit 881fc1f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# vi: set ft=ruby :

Vagrant::Config.run do |config|
config.vm.box = "lucid32"
# config.vm.box_url = "http://domain.com/path/to/above.box"
config.vm.box = "stripe-ctf-base"
config.vm.box_url = "https://www.dropbox.com/s/qhdb95prfjqh2r9/stripe-ctf-base-v2.box"

config.vm.define :level2 do |level2_config|
level2_config.vm.network :hostonly, "192.168.33.102"
Expand Down
24 changes: 24 additions & 0 deletions building-stripe-ctf-base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Run these commands on the base lucid32 box to build stripe-ctf-base.box

sudo /usr/bin/apt-get update
sudo /usr/bin/apt-get install -y apache2 libapache2-mod-php5 libsqlite3-dev build-essential python-software-properties python-pip

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs npm

sudo gem install bundler sinatra sequel sqlite3 rest-client json rack rack_csrf --no-rdoc --no-ri

sudo pip install flask flup

# Phantom js
wget http://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-i686.tar.bz2
tar xjf phantomjs-1.8.1-linux-i686.tar.bz2
sudo mv phantomjs-1.8.1-linux-i686/bin/phantomjs /usr/local/bin/
sudo chown root:root /usr/local/bin/phantomjs
sudo apt-get install -y fontconfig

wget https://github.com/n1k0/casperjs/tarball/1.0.2
tar zxf 1.0.2
sudo ln -s /home/vagrant/n1k0-casperjs-bc0da16/bin/casperjs /usr/local/bin

0 comments on commit 881fc1f

Please sign in to comment.