forked from richo/babashka
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
35 lines (29 loc) · 949 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "babashka" do |v|
v.vm.box = "generic/ubuntu2004"
v.vm.synced_folder ".", "/vagrant"
v.vm.provider "vmware_desktop" do |vmware|
vmware.allowlist_verified = true
end
v.vm.provision "shell", run: :once, inline: <<-SHELL
echo "Removing i386 from dpkg"
sudo dpkg --remove-architecture i386
echo "Doing initial apt-get updates"
sudo apt-get -qq update > /dev/null
sudo apt-get -qq dist-upgrade > /dev/null
sudo apt-get -qq autoremove
SHELL
v.vm.provision "shell", run: :once, inline: <<-SHELL
# Link the Babashka dependencies and helpers to /etc/babashka
sudo mkdir /etc/babashka
pushd /etc/babashka
sudo ln -s /vagrant/dependencies .
sudo ln -s /vagrant/helpers .
popd
SHELL
v.vm.provision "reload", run: :once
end
# we can run the tests now, if we like
end