mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
# What box should we base this build on?
|
|
config.vm.box = "ubuntu/xenial64"
|
|
|
|
#######################################################################
|
|
# THIS REQUIRES YOU TO INSTALL A PLUGIN. RUN THE COMMAND BELOW...
|
|
#
|
|
# $ vagrant plugin install vagrant-disksize
|
|
#
|
|
#######################################################################
|
|
|
|
# Default images are not big enough to build Armbian.
|
|
config.disksize.size = "40GB"
|
|
|
|
# So we don't have to download the code a 2nd time.
|
|
config.vm.synced_folder ".", "/home/ubuntu/lib"
|
|
|
|
#######################################################################
|
|
# We could sync more folders (that seems like the best way to go),
|
|
# but in many cases builds fail because hardlinks are not supported.
|
|
# So, a more failproof approach is to just use a larger disk.
|
|
|
|
# Share folders with the host to make it easy to get our images out.
|
|
config.vm.synced_folder "./output", "/home/ubuntu/output", create: true
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.name = "Armbian Builder"
|
|
vb.gui = true
|
|
|
|
# Tweak these to fit your needs.
|
|
vb.memory = "8192"
|
|
vb.cpus = "4"
|
|
|
|
end
|
|
end
|