# -*- mode: ruby -*- # vi: set ft=ruby : BOX = "debian/jessie64" BOX_VERSION = "= 8.5.2" Vagrant.configure("2") do |config| # Configure VM RAM and CPU for VirtualBox config.vm.provider :virtualbox do |virtualbox, override| virtualbox.memory = 1024 # Two cores over default one for faster builds virtualbox.cpus = 2 override.vm.box = BOX override.vm.box_version = BOX_VERSION end # Configure VM RAM and CPU for LibVirt config.vm.provider :libvirt do |libvirt, override| libvirt.memory = 1024 # Two cores over default one for faster builds libvirt.cpus = 2 override.vm.box = BOX override.vm.box_version = BOX_VERSION end config.vm.provider "docker" do |docker, override| docker.build_dir = "." docker.remains_running = false override.vm.synced_folder ".", "/build" end # NFS is fragile, disable it and use rsync config.nfs.functional = false # Sync folders /packaging/deb/ and /vagrant config.vm.synced_folder ".", "/vagrant" # Update package info to prevent old info from causing 404s during install config.vm.provision "shell", inline: "apt-get update" # Install pkg dev tools, Python libs for build scripts, gdebi to test install config.vm.provision "shell", inline: "apt-get install -y --force-yes \ build-essential \ devscripts \ equivs \ dh-systemd \ python-yaml \ python-jinja2 \ gdebi " # Add jessie-backports config.vm.provision "shell", inline: <<-SHELL echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list apt-get update SHELL end