-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (34 loc) · 1.24 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
40
41
42
Vagrant.configure(2) do |config|
# We use Ubuntu instead of Debian because the image comes with two-way
# shared folder support by default.
# UBUNTU = 'hashicorp/bionic64'
# UBUNTU = "ubuntu/xenial64"
UBUNTU = "bento/ubuntu-18.04"
config.vm.define(:dotfiles) do |config|
config.vm.provider :virtualbox do |v|
v.name = 'dotfiles'
v.memory = 2048
v.cpus = `nproc`.chomp.to_i
end
config.vm.provider :vmware_desktop do |v|
v.vmx['memsize'] = '2048'
v.vmx['numvcpus'] = `nproc`.chomp
end
config.vm.box = UBUNTU
config.vm.hostname = 'dotfiles'
# Make sure we know the VM image’s default user name. The ‘cassowary’ user
# (specified later) is used for most of the test *output*, but we still
# need to know where the ‘target’ and ‘.cargo’ directories go.
developer = 'vagrant'
# Install the dependencies needed for exa to build, as quietly as
# apt can do.
config.vm.provision :shell, privileged: true, inline: <<-EOF
echo "Installing tools"
apt-get update -qq
apt-get install -qq \
git gcc curl zip zsh bash tmux build-essential \
python python2.7-dev python3-dev python3-pip \
pkg-config autoconf
EOF
end
end