2014-02-20 16:34:04 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
# Drone supports 12.04 64bit and 13.04 64bit
|
|
|
|
config.vm.box = "precise64"
|
|
|
|
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
|
|
|
|
|
|
|
|
# Forward keys from SSH agent rather than copypasta
|
|
|
|
config.ssh.forward_agent = true
|
|
|
|
|
|
|
|
# FIXME: Maybe this is enough
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.customize ["modifyvm", :id, "--memory", "1024"]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Drone by default runs on port 80. Forward from host to guest
|
|
|
|
config.vm.network :forwarded_port, guest: 80, host: 8080
|
2014-02-20 22:34:25 +00:00
|
|
|
|
|
|
|
# Sync this repo
|
|
|
|
config.vm.synced_folder ".", "/opt/drone"
|
2014-02-20 16:34:04 +00:00
|
|
|
|
|
|
|
# system-level initial setup
|
2014-02-20 22:34:25 +00:00
|
|
|
config.vm.provision "shell", path: "scripts/provision.sh"
|
2014-02-20 16:34:04 +00:00
|
|
|
end
|