Skip to content

JeffDeCola/my-packer-image-builds

Repository files navigation

MY PACKER IMAGE BUILDS

codeclimate Issue Count MIT License jeffdecola.com

A place to keep my packer image builds.

tl;dr

## BUILD IMAGE
packer build template.pkr.hcl

## OTHER COMMANDS
packer validate template.pkr.hcl

Table of Contents

Documentation and Reference

OVERVIEW

Packer is useful for the automated BUILD of a custom image.

IMAGE - packer-overview - IMAGE

These builds use the following statement,

Using packer to build a/an {CUSTOM IMAGE FILE} image containing the {CUSTOM IMAGE OS} OS for {PROVIDER TOOL} on {HOST OS}.

Where,

  • CUSTOM IMAGE FILE: docker/gce/vagrant/virtualbox/etc.
  • CUSTOM IMAGE OS: ubuntu/alpine/windows/etc.
  • PROVIDER TOOL: docker/gce/virtualbox/etc.
  • HOST OS: linux/windows

DOCKER IMAGES

You can also build docker images using a Dockerfile as shown in my-docker-image-builds.

GOOGLE COMPUTE ENGINE (GCE) IMAGES

You can also build gce images using gcloud cli or the gce gui.

VAGRANT IMAGES (BOX)

VIRTUALBOX IMAGES

It's nice using packer because you don't have to use the virtualbox gui.