Back to Packer

Build Images in CI/CD

website/content/guides/packer-on-cicd/build-image-in-cicd.mdx

1.15.31.9 KB
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

Build Images in CI/CD

The following guides from our partners show how to use their services to build images with Packer.

The majority of the Packer Builders can run just fine in a container, a common model used by most CI/CD services. However, while it is possible to run many builders in containers or nested virtualization, this may require advanced configuration; examples include the QEMU builder for KVM or Xen, the VirtualBox builder for OVA or OVF virtual machines, and the VMware builder for use with VMware products that are all designed to run on a bare-metal machine or within nested virtualization.

The Building a VirtualBox Image with Packer in TeamCity guide shows how to create a VirtualBox image using TeamCity's support for running scripts on bare-metal machines.