forked from DawnScience/dawn-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
34 lines (25 loc) · 1.08 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- 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|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "jekyll"
config.vm.define "github-pages" do |base|
end
# Throw in our provisioning script
config.vm.provision "shell", path: "vagrant_bootstrap.sh", privileged: false
# Map localhost:4000 to port 4000 inside the VM
config.vm.network "forwarded_port", guest: 4000, host: 8080
config.vm.network "private_network", ip: "192.168.3.33"
# Create a shared folder between guest and host
config.vm.synced_folder ".", "/srv/www/dawn_website", create: true
config.ssh.forward_agent = true
# VirtualBox-specific configuration
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", 512]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
end