Vagrant 入门指引
1. Vagrant 介绍
相关资源
- 官网:https://www.vagrantup.com
- 文档(英文):https://www.vagrantup.com/docs
- 文档(中文):https://tangbaoping.github.io/vagrant_doc_zh/v2
- 官方 box 仓库:https://app.vagrantup.com/boxes/search
- 第三方 box 仓库:http://www.vagrantbox.es(还有清华、中科大 👍)
- CentOS 官方 box 地址:http://cloud.centos.org/centos/7/vagrant/x86_64/images/
- Ubuntu 官方 box 地址:http://cloud-images.ubuntu.com
下面是节选自官方对 Vagrant 的说明:
WHY VAGRANT?
Vagrant provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team.
To achieve its magic, Vagrant stands on the
oulders of giants. Machines are provisioned on top of VirtualBox, VMware, AWS, or any other provider. Then, industry-standard provisioning tools such as shell scripts, Chef, or Puppet, can be used to automatically install and configure software on the machine.
其实,说白了 Vagrant 就是一个普普通通的装了 Linux 的 VirtualBox 虚拟机,配以 Vagrant 团队为之开发的一系列套件,辅助完成诸如安装初始化、文件同步、ssh、部署环境升级、功能插件安装等等一些列问题的开发环境部署套件。
参见知乎话题:Vagrant 和 Docker的使用场景和区别?
解决的痛点:
- 开发环境快速部署
- 开发环境更迭