mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:48:54 +08:00
Issue #141 Add Vagrantfile to automate dev environment
Problem: There is no automated way to setup a build environment. Solution: Use Vagrant to pull an Ubuntu image and install the same prerequisites used on Travis. Testing: Full build on my macintosh.
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
# Every Vagrant development environment requires a box. You can search for
|
||||
# boxes at https://vagrantcloud.com/search.
|
||||
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
|
||||
# use shell and other provisioners as usual
|
||||
config.vm.provision :shell, path: "bootstrap.sh"
|
||||
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.memory = 1024
|
||||
v.cpus = 4
|
||||
end
|
||||
config.vm.provision "shell" do |s|
|
||||
s.inline = <<-SCRIPT
|
||||
# Change directory automatically on ssh login
|
||||
echo "cd /vagrant" >> /home/vagrant/.bashrc
|
||||
SCRIPT
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user