-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
39 lines (34 loc) · 1.35 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
35
36
37
38
39
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define 'desktop' do |desktop|
# cache
desktop.cache.scope = :box if Vagrant.has_plugin?('vagrant-cachier')
# enable virtualbox gui... because it's a desktop! :)
desktop.vm.provider 'virtualbox' do |virtualbox|
virtualbox.gui = true
virtualbox.memory = 1024 * 2
virtualbox.cpus = 2
virtualbox.customize ['modifyvm', :id, '--vram', '64']
virtualbox.customize ['modifyvm', :id, '--accelerate3d', 'on']
virtualbox.customize ['modifyvm', :id, '--clipboard', 'bidirectional']
end
# load Ubuntu 14.04 LTS (Trusty Tahr)
desktop.vm.box = 'ubuntu/trusty64'
# disable default share
desktop.vm.synced_folder '.', '/vagrant', disabled: true
# mimic desktop dir structure
desktop.vm.synced_folder '.', '/home/vagrant/salty-desktop'
# bootstrap the environment
desktop.vm.provision 'bootstrap',
type: 'shell',
inline: '/bin/sh salty-desktop/script/bootstrap',
privileged: false
# update the environment
desktop.vm.provision 'update',
type: 'shell',
inline: '/bin/sh salty-desktop/script/update',
run: 'always',
privileged: false
end
end