Skip to content

Instantly share code, notes, and snippets.

@nonsequitur
Last active August 29, 2015 14:23
Show Gist options
  • Save nonsequitur/60cd7db1cbd61a74b62d to your computer and use it in GitHub Desktop.
Save nonsequitur/60cd7db1cbd61a74b62d 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/*.gem /vagrant
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty32"
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