Vagrant 1.4 发布了,包含很多新特性、bug 修复和改进,下载地址:http://www.vagrantup.com/downloads.html
Vagrant是一个基于Ruby的工具,用于创建和部署虚拟化开发环境。它 使用Oracle的开源VirtualBox虚拟化系统,使用 Chef 创建自动化虚拟环境。
该版本包含如下新特性:
- New provisioner: Docker. Install Docker, pull containers, and run containers easier than ever.
- Machine readable output. Vagrant now has machine-friendly output by using the
--machine-readableflag. - New plugin type: synced folder implementation. This allows new ways of syncing folders to be added as plugins to Vagrant.
- The
Vagrant.require_versionfunction can be used at the top of a Vagrantfile to enforce a minimum/maximum Vagrant version. - Adding boxes via
vagrant box addand the Vagrantfile both support providing checksums of the box files. - The
--debugflag can be specified on any command now to get debug-level log output to ease reporting bugs. - You can now specify a memory using
vb.memorysetting with VirtualBox. - Plugin developers can now hook into
environment_plugins_loaded, which is executed after plugins are loaded but before Vagrantfiles are parsed. - VirtualBox internal networks are now supported. [GH-2020]
其他方面的改进和 bug 修复列表请看这里。此外,官方还发布了 Vagrant 1.5 的开发计划。
Vagrant 使用非常简单:
$ vagrant box add base http://files.vagrantup.com/precise32.box $ vagrant init $ vagrant up
