Skip to content

Instantly share code, notes, and snippets.

@nonsequitur
Created June 27, 2015 13:03
Show Gist options
  • Save nonsequitur/2150c21f1ef7fa8eeb6d to your computer and use it in GitHub Desktop.
Save nonsequitur/2150c21f1ef7fa8eeb6d to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
$build_nokogiri = <<SCRIPT
apt-get update
apt-get -y install docker.io
apt-get -y install bundler
gem install rake-compiler-dock
cd
git clone https://github.com/larskanis/nokogiri
cd nokogiri
git checkout make-use-of-rake-compiler-dock
bundle
rake gem:windows
cp /root/nokogiri/pkg/nokogiri-1.6.6.2-x86-mingw32.gem /vagrant
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", inline: $build_nokogiri
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment