forked from niflostancu/rpi-debian-build-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
31 lines (25 loc) · 832 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# we need a Debian-like distro for kernel .deb generation
config.vm.box = 'debian/bookworm64'
# Disable automatic box update checking
# config.vm.box_check_update = false
# use rsync for one-way syncing of scripts
config.vm.synced_folder \
'.', '/vagrant', type: 'rsync', \
rsync__auto: true, rsync__exclude: ['.git/', '.vagrant/']
# We need sufficient resources for the kernel cross-compilation tasks
config.vm.provider 'virtualbox' do |vbox|
vbox.cpus = 4
vbox.memory = '4096'
end
config.vm.provider 'libvirt' do |libvirt|
libvirt.cpus = 4
libvirt.memory = '4096'
end
# Run provisioning script
config.vm.provision 'shell', inline: <<-SHELL
bash '/vagrant/utils/provision-debian.sh'
SHELL
end