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
- My packer cheat sheet
- An illustration of how vagrant, docker and packer build and deploy images
- This repos github webpage built with concourse
Packer is useful for the automated BUILD of a custom 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
You can also build docker images using a Dockerfile as shown in my-docker-image-builds.
-
Using packer to build a docker image containing the alpine OS for docker on linux.
-
jeffs-docker-image-ubuntu-2204
Using packer to build a docker image containing the ubuntu 22.04 OS for docker on linux.
You can also build gce images using gcloud cli or the gce gui.
-
Using packer to remotely build a gce image containing the ubuntu 22.04 OS for gce on linux.
-
jeffs-vagrant-image-ubuntu-2204-for-virtualbox
Using packer to build a vagrant image (box) containing the ubuntu 22.04 OS for virtualbox on linux or windows.
It's nice using packer because you don't have to use the virtualbox gui.
-
jeffs-virtualbox-image-ubuntu-2204-for-virtualbox
Using packer to build a virtualbox image from an ubuntu 20.04 iso containing the ubuntu 22.04 OS for virtualbox on linux or windows.