forked from solo-io/packer-plugin-arm-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
20 lines (18 loc) · 1.1 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu1604"
config.vm.provider :virtualbox do |vb, override|
# generic/ubuntu1604 does not come with virtualbox-guest-utils installed even
# though a virtualbox flavor exists.
# Therefore, override the image for virtualbox provider.
override.vm.box = "ubuntu/xenial64"
# disable the generation of ubuntu-xenial-16.04-cloudimg-console.log file
# https://betacloud.io/get-rid-of-ubuntu-xenial-16-04-cloudimg-console-log/
#vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.vm.synced_folder "./", "/vagrant", disabled: false
config.vm.provision "build-env", type: "shell", :path => "provision-build-env.sh", privileged: false
config.vm.provision "packer-builder-arm-image", type: "shell", :path => "provision-packer-builder-arm-image.sh", privileged: false, env: {"GIT_CLONE_URL" => ENV["GIT_CLONE_URL"]}
config.vm.provision "build-image", type: "shell", :path => "provision-build-image.sh", privileged: false, env: {"PACKERFILE" => ENV["PACKERFILE"]}
end