Last active
August 29, 2015 13:56
-
-
Save andyljones/9156114 to your computer and use it in GitHub Desktop.
Vagrantfile and provisioning script for a Vagrant instance for Octopress development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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