Skip to main content
atmos Packer Docker build
 
00:00.0 / 00:00.0
README.md1.5 KB
View on GitHub

Example: Packer Docker Image

Minimal Atmos setup demonstrating the Packer component type using Packer's Docker builder — no cloud credentials required.

What You'll See

  • Packer component configuration in an Atmos stack
  • Packer's docker builder pulling alpine:3.19, running a shell provisioner, and committing the result as a local image — no AMIs, no cloud credentials, and nothing pushed anywhere (there's no post-processor)
  • The Atmos toolchain installing Packer automatically, pinned as a component-level tool dependency

Prerequisites

  • Docker or Podman running locally (the docker builder talks to the local container runtime; atmos packer init only needs network access to download the plugin)

Try It

cd examples/packer-docker

# Download the Docker plugin (network access only — no daemon required)
atmos packer init alpine -s alpine

# Build the image (requires Docker or Podman running locally)
atmos packer build alpine -s alpine

Key Files

FilePurpose
atmos.yamlAtmos configuration: Packer component path + toolchain-managed Packer install
stacks/alpine.yamlSingle flat stack declaring the alpine Packer component
components/packer/alpine/image.pkr.hclPacker template using the Docker builder