-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
34 lines (24 loc) · 1.13 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|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", type: "dhcp"
config.vm.network "forwarded_port", guest: 8773, host: 8774
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
# If true, then any SSH connections made will enable agent forwarding.
config.ssh.forward_agent = true
# Share additional folders to the guest VM.
config.vm.synced_folder ".", "/home/vagrant/blanket"
# Install docker & fig
config.vm.provision "shell", path: "provision/vagrant.sh"
# Upload user's ssh key into box so it can be used for downloading stuff from github
ssh_key_path = "~/.ssh/"
config.vm.provision "shell", inline: "mkdir -p /home/vagrant/.ssh"
config.vm.provision "file", source: "#{ ssh_key_path + 'id_rsa' }", destination: "/home/vagrant/.ssh/id_rsa"
config.vm.provision "file", source: "#{ ssh_key_path + 'id_rsa.pub' }", destination: "/home/vagrant/.ssh/id_rsa.pub"
end