Skip to content

Instantly share code, notes, and snippets.

@plainprogrammer
Created January 27, 2014 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plainprogrammer/8653013 to your computer and use it in GitHub Desktop.
Save plainprogrammer/8653013 to your computer and use it in GitHub Desktop.
FoundationDB Sandbox with RVM in Vagrant (Virtualbox and VMware)

FoundationDB Sandbox

The provided Vagrant file and BASH provisioning script will setup a Precise 64 environment with version 1.0.1 of FoundationDB installed and ready to go, along with a working RVM environment.

Requirements

The Vagrantfile expects the vagrant-exec plugin to be present.

#!/bin/bash
apt-get -y install curl git
wget https://foundationdb.com/downloads/I_accept_the_FoundationDB_Community_License_Agreement/1.0.1/foundationdb-clients_1.0.1-1_amd64.deb
wget https://foundationdb.com/downloads/I_accept_the_FoundationDB_Community_License_Agreement/1.0.1/foundationdb-server_1.0.1-1_amd64.deb
sudo dpkg -i foundationdb-clients_1.0.1-1_amd64.deb foundationdb-server_1.0.1-1_amd64.deb
sudo su - vagrant
cd /home/vagrant
\curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=fdb
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'precise64'
config.vm.provider :virtualbox do |vb|
vb.box_url = 'http://files.vagrantup.com/precise64.box'
vb.memory = 4096
end
config.vm.provider :vmware_fusion do |vw|
vw.box = 'precise64_vmware'
vw.box_url = 'http://files.vagrantup.com/precise64_vmware.box'
vw.memory = 4096
end
config.vm.provision 'shell', path: 'provision.sh'
config.exec.root = '/vagrant'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment