-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (24 loc) · 948 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Install vagrant-disksize to allow resizing the vagrant box disk.
unless Vagrant.has_plugin?("vagrant-disksize")
raise Vagrant::Errors::VagrantError.new, "vagrant-disksize plugin is missing. Please install it using 'vagrant plugin install vagrant-disksize' and rerun 'vagrant up'"
end
$setup_script = <<SCRIPT
sudo apt update
sudp apt upgrade -y
sudo apt install -y jq rename curl git tmux
git clone https://github.com/tezos-israel/rpi.git /home/vagrant/setup-rpi
mkdir /home/vagrant/setup-rpi/out
touch /home/vagrant/setup-rpi/out/step1
sudo chown -R vagrant:vagrant /home/vagrant/setup-rpi
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "16384"
end
config.vm.provision "shell", inline: $setup_script
config.disksize.size = '20GB'
end