File: Vagrantfile

package info (click to toggle)
acbuild 0.4.0+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 740 kB
  • sloc: sh: 170; makefile: 24
file content (18 lines) | stat: -rw-r--r-- 771 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Vagrant.configure('2') do |config|
    # grab Ubuntu 16.04 official image
    config.vm.box = "ubuntu/xenial64" # Ubuntu 16.04

    # fix issues with slow dns http://serverfault.com/a/595010
    config.vm.provider :virtualbox do |vb, override|
        vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
        vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
        # add more ram, the default isn't enough for the build
        vb.customize ["modifyvm", :id, "--memory", "768"]
    end

    # install Build Dependencies (GOLANG)
    config.vm.provision :shell, :privileged => false, :path => "scripts/vagrant-install-go.sh"

    # Install acbuild
    config.vm.provision :shell, :privileged => false, :path => "scripts/vagrant-install-acbuild.sh"
end