1 Star 1 Fork 0

alfar/piksi_firmware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Vagrantfile 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile used largely for cross-platform testing of
# piksi_firmware dependency installation.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box definitions for different targets
# Ubuntu 14.04 LTS
config.vm.define "trusty" do |trusty64|
trusty64.vm.box = "trusty64"
trusty64.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
end
# Debian 7.6
config.vm.define "wheezy" do |wheezy|
wheezy.vm.box = "wheezy"
wheezy.vm.box_url = "https://github.com/jose-lpa/packer-debian_7.6.0/releases/download/1.0/packer_virtualbox-iso_virtualbox.box"
end
# Networking and memory configuration
config.vm.network "private_network", ip: "192.168.10.200"
config.vm.network :forwarded_port, guest: 22, host: 1234
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.memory = 1024
vb.cpus = 2
end
# Provisioner definitions
config.vm.provision "ansible" do |ansible|
ansible.playbook = "setup/ansible/provision.yml"
ansible.verbose = "v"
ansible.host_key_checking = false
end
# Shared directory
share_prefix = "share-"
Dir['../*/'].each do |fname|
basename = File.basename(fname)
if basename.start_with?(share_prefix)
mount_path = "/" + basename[share_prefix.length..-1]
puts "Mounting share for #{fname} at #{mount_path}"
config.vm.synced_folder fname, mount_path
end
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/alfar999/piksi_firmware.git
git@gitee.com:alfar999/piksi_firmware.git
alfar999
piksi_firmware
piksi_firmware
master

搜索帮助