Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding instructions to build stripe-ctf-base, and using it as the bas…

…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...
commit 881fc1ff408175aa25eca7558aa1b71b6002ac4a 1 parent 6ffcf1d
@e28eta authored
Showing with 26 additions and 2 deletions.
  1. +2 −2 Vagrantfile
  2. +24 −0 building-stripe-ctf-base.txt
View
4 Vagrantfile
@@ -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"
View
24 building-stripe-ctf-base.txt
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.