1 Star 0 Fork 17

Chuan / libcareplus

forked from openEuler / libcareplus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Vagrantfile 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
# -*- mode: ruby -*-
# vi: set ft=ruby :
# See Documentation/vagrant.rst for more info
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Disable default shares: current dir as /vagrant and $HOME as ~/sync
config.vm.synced_folder ENV["HOME"], "/home/vagrant/sync", disabled: true
config.vm.synced_folder ".", "/vagrant", disabled: true
# Share whole git repo via nfs
config.vm.synced_folder ".", "/home/vagrant/libcare", type: "nfs", disabled: false, mount: false
config.vm.provider "libvirt" do |v|
# libvirt has a strict limitation on the length of domain names:
# Call to virDomainCreateWithFlags failed: internal error:
# Monitor path /var/lib/libvirt/qemu/domain-kernelcare_user_ubuntu-14.04-lts-utopic-test_1470670227_d2574f4934bc0e18fefc/monitor.sock
# too big for destination
#
# domain names are constructed as:
# default_prefix + box + timestamp + random_hostname
#
# so keep default_prefix short (empty)
v.default_prefix = ""
v.random_hostname = true
end
config.vm.provider "parallels" do |prl|
prl.linked_clone = true
end
boxes = File.readlines("#{File.dirname(__FILE__)}/vagrant_boxes").map &:strip;
boxes.each do |box|
# Regular development VMs
config.vm.define "#{box}" do |b|
b.vm.box = "ucare/#{box}"
b.vm.box_url = "https://kernelcare.s3.amazonaws.com/ucare/vagrant/ucare/#{box}/metadata.json"
end
# Test VMs
config.vm.define "#{box}-test" do |b|
b.vm.box = "ucare/#{box}"
b.vm.box_url = "https://kernelcare.s3.amazonaws.com/ucare/vagrant/ucare/#{box}/metadata.json"
end
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Chuan-Zheng/libcareplus.git
git@gitee.com:Chuan-Zheng/libcareplus.git
Chuan-Zheng
libcareplus
libcareplus
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891