MCPcopy
hub / github.com/hashicorp/packer

github.com/hashicorp/packer @v1.15.4 sqlite

repository ↗ · DeepWiki ↗ · release v1.15.4 ↗
2,607 symbols 9,840 edges 475 files 766 documented · 29%
README

Packer

License: BUSL-1.1 Build Status Discuss ===

HashiCorp Packer logo

Packer is a tool for building identical machine images for multiple platforms from a single source configuration.

Packer is lightweight, runs on every major operating system, and is highly performant, creating machine images for multiple platforms in parallel. Packer supports various platforms through external plugin integrations, the full list of which can be found at https://developer.hashicorp.com/packer/integrations.

The images that Packer creates can easily be turned into Vagrant boxes.

Quick Start

Packer

There is a great introduction and getting started guide for building a Docker image on your local machine without using any paid cloud resources.

Alternatively, you can refer to getting started with AWS to learn how to build a machine image for an external cloud provider.

HCP Packer

HCP Packer registry stores Packer image metadata, enabling you to track your image lifecycle.

To get started with building an AWS machine image to HCP Packer for referencing in Terraform refer to the collection of HCP Packer Tutorials.

Documentation

Comprehensive documentation is viewable on the Packer website at https://developer.hashicorp.com/packer/docs.

Contributing to Packer

See CONTRIBUTING.md for best practices and instructions on setting up your development environment to work on Packer.

Contributing to Documentation

Important: Packer documentation has moved to the hashicorp/web-unified-docs repository.

To contribute documentation changes: - Make contributions directly to the web-unified-docs repository - See the Updating Documentation section in CONTRIBUTING.md for detailed instructions

Unmaintained Plugins

As contributors' circumstances change, development on a community maintained plugin can slow. When this happens, HashiCorp may use GitHub's option to archive the plugin’s repository, to clearly signal the plugin's status to users.

What does unmaintained mean?

  1. The code repository and all commit history will still be available.
  2. Documentation will remain on the Packer website.
  3. Issues and pull requests are monitored as a best effort.
  4. No active development will be performed by HashiCorp.

If you are interested in maintaining an unmaintained or archived plugin, please reach out to us at packer@hashicorp.com.

Extension points exported contracts — how you extend this code

Tester (Interface)
Tester is the end of a pipe for testing purposes. Once multiple commands have been piped together in a pipeline, we can [9 …
packer_test/common/check/pipe_checker.go
NamedVertex (Interface)
NamedVertex is an optional interface that can be implemented by Vertex to give it a human-friendly name that is used for [7 …
internal/dag/graph.go
Decodable (Interface)
Decodable structs are structs that can tell their hcl2 ObjectSpec; this config spec will be passed to hcldec.Decode and [46 …
hcl2template/decode.go
Fixer (Interface)
A Fixer is something that can perform a fix operation on a template. [34 implementers]
fix/fixer.go
BlockParser (Interface)
(no doc) [9 implementers]
command/hcl2_upgrade.go
Registry (Interface)
Registry is an entity capable to orchestrate a Packer build and upload metadata to HCP [3 implementers]
internal/hcp/registry/registry.go
Getter (Interface)
A Getter helps get the appropriate files to download a binary. [3 implementers]
packer/plugin-getter/plugins.go
Handler (Interface)
The Handler handles all Packer things. This interface reflects the Packer commands, ex: init, console ( evaluate ), fix [2 …
packer/run_interfaces.go

Core symbols most depended-on inside this repo

Errorf
called by 742
packer/ui.go
Error
called by 243
acctest/testing.go
Fatal
called by 198
acctest/testing.go
String
called by 187
hcl2template/addrs/referenceable.go
Name
called by 143
internal/dag/graph.go
Say
called by 123
packer/ui.go
PackerCommand
called by 92
packer_test/common/commands.go
SetArgs
called by 92
packer_test/common/commands.go

Shape

Method 1,169
Function 905
Struct 448
TypeAlias 35
Interface 34
FuncType 16

Languages

Go100%
TypeScript1%

Modules by API surface

command/hcl2_upgrade.go59 symbols
packer/ui.go46 symbols
packer/core.go46 symbols
packer/plugin-getter/plugins.go43 symbols
provisioner/powershell/provisioner_test.go37 symbols
packer_test/common/check/gadgets.go28 symbols
internal/hcp/registry/types.bucket.go28 symbols
packer/provisioner.go27 symbols
hcl2template/internal/mock.go26 symbols
provisioner/hcp-sbom/provisioner.go25 symbols
hcl2template/types.packer_config.go25 symbols
packer/core_test.go24 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

cel.dev/exprv0.25.1 · 1×
cloud.google.com/gov0.123.0 · 1×
cloud.google.com/go/authv0.18.2 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/monitoringv1.24.3 · 1×
cloud.google.com/go/storagev1.61.3 · 1×
cyphar.com/go-pathrsv0.2.1 · 1×
dario.cat/mergov1.0.2 · 1×
github.com/Azure/go-ntlmsspv0.1.1 · 1×
github.com/BurntSushi/tomlv1.6.0 · 1×

For agents

$ claude mcp add packer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact