• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/misc/Vagrantfile
Peter KorsgaardPeter Korsgaard committed 8a94ff12d2304 Mar 2018
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# Vagrantfile
4
#
5
################################################################################
6
​
7
# Buildroot version to use
8
RELEASE='2018.02'
9
​
10
### Change here for more memory/cores ###
11
VM_MEMORY=2048
12
VM_CORES=1
13
​
14
Vagrant.configure('2') do |config|
15
    config.vm.box = 'bento/ubuntu-16.04'
16
​
17
    config.vm.provider :vmware_fusion do |v, override|
18
        v.vmx['memsize'] = VM_MEMORY
19
        v.vmx['numvcpus'] = VM_CORES
20
    end
21
​
22
    config.vm.provider :virtualbox do |v, override|
23
        v.memory = VM_MEMORY
24
        v.cpus = VM_CORES
25
​
26
        required_plugins = %w( vagrant-vbguest )
27
        required_plugins.each do |plugin|
28
          system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
29
        end
30
    end
31
​
32
    config.vm.provision 'shell' do |s|
33
        s.inline = 'echo Setting up machine name'
34
​
35
        config.vm.provider :vmware_fusion do |v, override|
36
            v.vmx['displayname'] = "Buildroot #{RELEASE}"
37
        end
38
​
39
        config.vm.provider :virtualbox do |v, override|
40
            v.name = "Buildroot #{RELEASE}"
41
        end
42
    end
43
​
44
    config.vm.provision 'shell', privileged: true, inline:
45
        "sed -i 's|deb http://us.archive.ubuntu.com/ubuntu/|deb mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list
46
        dpkg --add-architecture i386
47
        apt-get -q update
48
        apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
49
        apt-get -q -y install build-essential libncurses5-dev \
50
            git bzr cvs mercurial subversion libc6:i386 unzip bc
51
        apt-get -q -y autoremove
52
        apt-get -q -y clean
53
        update-locale LC_ALL=C"
54
​
55
    config.vm.provision 'shell', privileged: false, inline:
56
        "echo 'Downloading and extracting buildroot #{RELEASE}'
57
        wget -q -c http://buildroot.org/downloads/buildroot-#{RELEASE}.tar.gz
58
        tar axf buildroot-#{RELEASE}.tar.gz"
59
​
60
end
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.