2015-12-21 07:04:00 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
config.vm.box = "ubuntu/trusty64"
|
|
|
|
# config.vm.box_check_update = false
|
|
|
|
|
|
|
|
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
|
|
|
|
config.vm.network :forwarded_port, guest: 8000, host: 8000, auto_correct: true
|
|
|
|
config.vm.network :forwarded_port, guest: 27017, host: 27017, auto_correct: true
|
|
|
|
|
|
|
|
config.vm.synced_folder "server", "/home/vagrant/server"
|
|
|
|
config.vm.synced_folder "scripts", "/home/vagrant/scripts"
|
2015-12-23 06:26:27 +00:00
|
|
|
config.vm.synced_folder "web", "/srv/http/ctf"
|
2015-12-21 07:04:00 +00:00
|
|
|
|
2016-03-04 00:27:10 +00:00
|
|
|
config.vm.provision :shell, path: "/vagrant/deploy", run: "always", privileged: false
|
2015-12-21 07:04:00 +00:00
|
|
|
config.vm.provision :shell, :path => "scripts/setup.sh"
|
|
|
|
config.ssh.forward_agent = true
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.customize ["modifyvm", :id, "--memory", "2048"]
|
|
|
|
end
|
|
|
|
end
|