-
Notifications
You must be signed in to change notification settings - Fork 13
/
Vagrantfile
executable file
·28 lines (25 loc) · 1022 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
#!/usr/bin/env ruby
# frozen_string_literal: true
provisioning_script = <<~SCRIPT
apt update -qq && \
apt install -y libdbus-1-dev gnome-keyring libssl-dev dbus-x11 curl
SCRIPT
Vagrant.configure('2') do |config|
config.vm.provider 'virtualbox' do |v|
v.memory = 4096
v.cpus = 2
end
config.vm.box = 'ubuntu/jammy64'
config.vm.provision 'shell',
inline: provisioning_script,
privileged: true
config.vm.provision 'shell',
inline: 'curl https://sh.rustup.rs -sSf | ' \
'sh -s -- -y --profile minimal --default-toolchain '\
'stable && '\
'mkdir -p ~/.cache ~/.local/share/keyrings && ' \
'sudo apt update && ' \
'sudo apt install -y build-essential git libdbus-1-dev dbus-x11 && ' \
'git clone https://github.com/moritzheiber/crowbar.git crowbar',
privileged: false
end