Skip to content

StefanScherer/packer-builder

Repository files navigation

Packer Builder

CircleCI

A Packer builder CI pipeline for VirtualBox, VMware and Hyper-V Vagrant boxes.

Packer Builder CI pipeline

Packet.net

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.

Azure

See hyperv sub folder.

Vagrant

Create a local VM and run Packer there. This is used to test the provision script.

vagrant up
vagrant ssh
packer build ...

Configuration

CircleCI Environment Variables

  • AZURE_STORAGE_ACCESS_KEY
  • AZURE_STORAGE_ACCOUNT
  • AZURE_STORAGE_CONTAINER
  • PACKET_APIKEY
  • VAGRANT_CLOUD_TOKEN
  • VAGRANT_CLOUD_USER
  • windows_server_xxx_docker

About

Packer builder for Vagrant boxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •