forked from sendgrid/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
22 lines (19 loc) · 841 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- mode: ruby -*-
# vi: set ft=ruby :
app_path = "/home/vagrant/docs"
Vagrant.configure("2") do |config|
config.ssh.forward_agent = true
config.vm.synced_folder Dir.getwd, app_path, nfs: true
# ubuntu
config.vm.define 'ubuntu', primary: true do |c|
c.vm.network "private_network", ip: "192.168.100.2"
c.vm.network "forwarded_port", guest: 4000, host: 4000
c.vm.box = "utopic-server-cloudimg-amd64-vagrant-disk1.box"
c.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/utopic/current/utopic-server-cloudimg-amd64-vagrant-disk1.box"
c.vm.provision "shell" do |s|
s.inline = "apt-get update -y; apt-get install git ruby ruby-dev gems node nodejs npm openjdk-8-jre -y; gem install bundler;
cd #{app_path} && npm install && bin/install && bin/preview"
s.privileged = true
end
end
end