Skip to content

Instantly share code, notes, and snippets.

@nonsequitur
Created June 27, 2015 13:09
Show Gist options
  • Save nonsequitur/71cb9968c5b91ab2facd to your computer and use it in GitHub Desktop.
Save nonsequitur/71cb9968c5b91ab2facd 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/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