如何快速生成vagrant box?
- 1 git clone https://github.com/chef/bento
- 2 修改 https://github.com/chef/bento/blob/master/centos/centos-7.5-x86_64.json 替换"mirror": “http://mirrors.kernel.org/centos”,为
- “mirror”: “https://mirrors.aliyun.com/centos”
- 3 cd bento/centos
- 4 packer build -only=virtualbox-iso centos-7.5-x86_64.json
这是最快的方法生成最新的box文件方法了
本文介绍了一种通过使用Chef Bento项目和Packer工具来快速生成VagrantBox的方法。具体步骤包括克隆Chef Bento仓库,修改镜像源,进入相应目录并构建指定的JSON配置文件。
1万+

被折叠的 条评论
为什么被折叠?



