This repository was archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
50 lines (42 loc) · 1.49 KB
/
Vagrantfile
File metadata and controls
50 lines (42 loc) · 1.49 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
$script = <<SCRIPT
curl -sL https://deb.nodesource.com/setup_8.x | sh
add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | apt-key add -
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential postgresql libpq-dev ruby libcurl3 \
libruby ruby-dev nodejs vim tmux redis-server awscli heroku \
fonts-dejavu-core fonts-dejavu-extra
gem install bundler
sudo -u postgres -- createuser -sU postgres ubuntu
SCRIPT
Vagrant.configure(2) do |config|
# Use a simple, current Ubuntu box
config.vm.box = "ubuntu/xenial64"
config.vm.box_version = "20171028.0.0"
# 3000 is the rails dev server, 3080 is for mailcatcher
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 3080, host: 3080
# Use local ssh keypairs
config.ssh.forward_agent = true
config.ssh.username = "ubuntu"
# Customize VirtualBox VM
config.vm.provider "virtualbox" do |v|
v.name = "DBMS Development"
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
config.vm.synced_folder "../shared", "/home/ubuntu/shared",
id: "shared",
owner: "ubuntu",
group: "ubuntu"
config.vm.synced_folder ".", "/home/ubuntu/dbms",
id: "ubuntu-root",
owner: "ubuntu",
group: "ubuntu"
config.vm.provision "shell", inline: $script
end