Официальный Плагины Разработка

Packer

Установка
brew install packer (см. README)

Описание

Packer — инструмент автоматической сборки образов: один шаблон собирает идентичные образы для AWS, GCP, Azure, VMware, Docker и десятков платформ, provisioners запускают shell, Ansible, Chef и другие сценарии настройки внутри образа, пост-процессоры готовят артефакты — сжатие, метаданные, загрузку в облако, интеграция с CI/CD даёт воспроизводимую сборку золотых образов на каждый коммит. Устраняет «у меня работает» на уровне машин.

Что умеет:
— собирать образы для всех платформ из одного шаблона;
— настраивать образы provisioner-ами;
— публиковать готовые артефакты;
— встраиваться в CI/CD.

Полная документация ниже — автоматически из репозитория hashicorp/packer (ветка main). Оригинальные материалы проекта распространяются на условиях его лицензии.

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:

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.