00:00.0 / 00:00.0
README.md1.5 KB
View on GitHubExample: 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
dockerbuilder pullingalpine: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
dockerbuilder talks to the local container runtime;atmos packer initonly 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
| File | Purpose |
|---|---|
atmos.yaml | Atmos configuration: Packer component path + toolchain-managed Packer install |
stacks/alpine.yaml | Single flat stack declaring the alpine Packer component |
components/packer/alpine/image.pkr.hcl | Packer template using the Docker builder |