Skip to content

Instantly share code, notes, and snippets.

@phumpal phumpal/Vagrantfile
Created Mar 17, 2018

Embed
What would you like to do?
jruby-1.7.4, toadhopper-2.1, openjdk-6-jdk, precise64, openSSL (1.0.1 14 Mar 2012)
vagrant box add http://files.vagrantup.com/precise64.box --name=precise64
vagrant up
vagrant ssh
sudo apt-get install -y \
build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev \
git openjdk-6-jdk maven ant vim
# Ensure java is openjdk-6-jdk
update-alternatives --config java
# Checkout and compile JRuby
git clone https://github.com/jruby/jruby.git
cd jruby
git checkout 1.7.4
ant
export PATH=$PATH:/root/jruby/bin
cd ..
git clone https://github.com/toolmantim/toadhopper.git
cd toadhopper
jgem install bundler --no-ri --no-rdoc
vim toadhopper.gemspec
# modify line 25 to s.add_development_dependency 'rake', '= 12.2.1'
bundle install
bundle exec rake test AIRBRAKE_API_KEY=abc123 AIRBRAKE_FULL_TEST=1
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.network "public_network"
config.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.cpus = 4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.