Skip to content

Instantly share code, notes, and snippets.

@nonsequitur
Last active August 29, 2015 14:23

Revisions

  1. nonsequitur revised this gist Jun 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Vagrantfile.rb
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@
    SCRIPT

    Vagrant.configure(2) do |config|
    config.vm.box = "ubuntu/trusty64"
    config.vm.box = "ubuntu/trusty32"

    config.vm.provision "shell", inline: $build_nokogiri
    end
  2. nonsequitur created this gist Jun 27, 2015.
    22 changes: 22 additions & 0 deletions Vagrantfile.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # -*- 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