Skip to content

Instantly share code, notes, and snippets.

@andyljones
Last active August 29, 2015 13:56
Show Gist options
  • Save andyljones/9156114 to your computer and use it in GitHub Desktop.
Save andyljones/9156114 to your computer and use it in GitHub Desktop.
Vagrantfile and provisioning script for a Vagrant instance for Octopress development.
#! /usr/bin/env bash
# Provision script for setting up Debian 7.0 for github-pages.
# Get ruby & python installed
apt-get update
apt-get -y install git ruby1.9.3 python
# Grab some ruby tools
gem install bundler --no-ri --no-rdoc
gem install rake --no-ri --no-rdoc
# Get Octopress and set it up.
git clone git://github.com/imathis/octopress.git /vagrant/octopress
cd /vagrant/octopress
bundle install
bundle exec rake install
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian7"
config.vm.box_url = "https://dl.dropboxusercontent.com/s/xymcvez85i29lym/vagrant-debian-wheezy64.box"
config.vm.network :forwarded_port, host: 4000, guest: 4000
config.vm.provision :shell, :path => "bootstrap.sh"
config.ssh.forward_agent = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment