-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVagrantfile
42 lines (33 loc) · 1.07 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|
config.ssh.password = "vagrant"
config.vm.box = "altf4llc/debian-bookworm"
# Speed is important here as a lot of compiling is done in the vm
# Be sure to set a high enough value for your system
config.vm.provider :vmware_desktop do |vmware|
vmware.vmx["memsize"] = "16384"
vmware.vmx["numvcpus"] = "8"
end
config.vm.provision "shell", keep_color: true, privileged: false, inline: <<-SHELL
echo 'function sync_vorpal {
mkdir -p $HOME/vorpal
rsync -aPW \
--delete \
--exclude=".env" \
--exclude=".git" \
--exclude=".packer" \
--exclude=".vagrant" \
--exclude="dist" \
--exclude="packer_debian_vmware_arm64.box" \
--exclude="target" \
/vagrant/. $HOME/vorpal/.
}' >> ~/.bashrc
echo 'function setup_vorpal {
sync_vorpal
pushd $HOME/vorpal
./script/dev.sh make dist
./script/install.sh
popd
}' >> ~/.bashrc
echo "PATH=\"${HOME}/vorpal/.env/bin:${HOME}/.cargo/bin:\${PATH}\"" >> ~/.bashrc
SHELL
end