A Packer builder CI pipeline for VirtualBox, VMware and Hyper-V Vagrant boxes.
Create a baremetal packet.net machine and run Packer there.
First you need the packet
golang cli:
go get -u github.com/ebsarr/packet
Then use the script machine.sh
to make things even simpler:
./machine.sh create p1
And then build a VMware VM
./build.sh p1 windows_2019_docker vmware|virtualbox
Afterwards remove the baremetal machine again
./machine.sh delete p1
There are several other commands in machine.sh
. Have a look at the usage.
See hyperv sub folder.
Create a local VM and run Packer there. This is used to test the provision script.
vagrant up
vagrant ssh
packer build ...
- AZURE_STORAGE_ACCESS_KEY
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_CONTAINER
- PACKET_APIKEY
- VAGRANT_CLOUD_TOKEN
- VAGRANT_CLOUD_USER
- windows_server_xxx_docker