This directory contains Packer templates that automate building VM images.
Each .json
file is a packer template.
- Install Packer:
brew install packer
- Configure
gcloud
with your personal User Application Default Credentials. - Run:
packer build <VM_TEMPLATE>.json
The location of the created VM image will be printed when the build completes.
Each template specifies which cloud to build the image in, a base VM image and one or more scripts that are run to configure the VM image.
At present, there is only VM template available and it builds TeamCity agent
images for Google Compute Engine. You'll need to be either authenticated with
the gcloud
tool or provide your Google Cloud JSON credentials in a
known location.