新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
55
learn/learn-kubernetes-master/kiamol/ch18/packer/README.md
Normal file
55
learn/learn-kubernetes-master/kiamol/ch18/packer/README.md
Normal file
@@ -0,0 +1,55 @@
|
||||
Scripts for provisioning base Vagrant boxes.
|
||||
|
||||
## Hyper-V
|
||||
|
||||
Build:
|
||||
|
||||
```
|
||||
packer build -force -only=hyperv-iso -var "hyperv_switch=Default Switch" .\windows\windows-2019-core.json
|
||||
```
|
||||
|
||||
Export:
|
||||
|
||||
```
|
||||
vagrant box add --name kiamol-windows-2019 .\windows\windows-2019-core-hyperv.box
|
||||
```
|
||||
|
||||
Publish:
|
||||
|
||||
```
|
||||
vagrant cloud auth login
|
||||
|
||||
vagrant cloud provider create kiamol/windows-2019 hyperv 0.0.1
|
||||
vagrant cloud provider upload kiamol/windows-2019 hyperv 0.0.1 windows-2019-core-hyperv.box
|
||||
```
|
||||
|
||||
## VirtualBox
|
||||
|
||||
Build:
|
||||
|
||||
```
|
||||
packer build -force -only=virtualbox-iso .\windows\windows-2019-core.json
|
||||
```
|
||||
|
||||
Export:
|
||||
|
||||
```
|
||||
vagrant box add --name kiamol-windows-2019 .\windows\windows-2019-core-hyperv.box
|
||||
```
|
||||
|
||||
Publish:
|
||||
|
||||
```
|
||||
vagrant cloud auth login
|
||||
|
||||
vagrant cloud provider create kiamol/windows-2019 hyperv 0.0.1
|
||||
vagrant cloud provider upload kiamol/windows-2019 hyperv 0.0.1 windows-2019-core-hyperv.box
|
||||
```
|
||||
|
||||
## Credits
|
||||
|
||||
Bento: https://github.com/chef/bento
|
||||
|
||||
Stefan Scherer: https://github.com/StefanScherer/packer-windows
|
||||
|
||||
Boxcutter: https://github.com/boxcutter/windows-ps
|
||||
Reference in New Issue
Block a user