Need advice about which tool to choose?Ask the StackShare community!

Packer

587
566
+ 1
41
Stacker 1

0
1
+ 1
0
Add tool

Packer vs Stacker 1: What are the differences?

Introduction

Packer and Stacker are both tools used for building machine images or containers automatically. However, there are key differences between these two tools that set them apart.

  1. Build Process Approach: Packer follows a virtual machine (VM)-centric approach, where it creates a VM and provisions it with necessary software, then creates an image from it. On the other hand, Stacker utilizes container technology, where it builds a container image by layering the necessary software components, resulting in a more lightweight and faster build process.

  2. Build Artifact: Packer generates various artifacts as output, such as Amazon Machine Images (AMI), VirtualBox images, or Docker containers. It supports multiple platforms and offers flexibility for different deployment scenarios. Stacker, on the other hand, primarily focuses on building Docker container images, making it more specialized for containerized environments.

  3. Configuration Language: Packer uses HashiCorp Configuration Language (HCL) for defining its build configurations. HCL provides a concise and expressive syntax with support for variables, templates, and conditionals. Stacker, on the other hand, allows the use of YAML or JSON as the configuration language, providing a more familiar and flexible approach for defining and managing stack files.

  4. Orchestration Capability: Packer mainly focuses on building images through the integration of various builders, provisioners, and post-processors. It does not provide robust orchestration capabilities for managing multiple build stages or dependencies. In contrast, Stacker provides advanced orchestration features, allowing the definition of complex workflows and dependencies between different stack files, making it suitable for more complex and interconnected infrastructure deployments.

  5. Community and Ecosystem: Packer has a larger community following and a more mature ecosystem. It has extensive documentation, active community support, and a wide range of plugins available for integrating with different infrastructures and services. Stacker, being a relatively newer tool, has a smaller community but is gaining traction as containerization becomes more popular.

  6. Continued Development: Packer has been actively developed and maintained by HashiCorp for many years, with regular updates and bug fixes. It is widely used in production environments and has a strong commitment to backward compatibility. Stacker, being a newer tool, is still evolving and may have a more rapid pace of development, introducing new features and improvements more frequently.

In summary, Packer and Stacker differ in their build process approach, supported artifacts, configuration language, orchestration capabilities, community, and development focus. While Packer offers more flexibility and broader platform support, Stacker specializes in building Docker containers with a focus on orchestration and simplicity.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Packer
Pros of Stacker 1
  • 27
    Cross platform builds
  • 8
    Vm creation automation
  • 4
    Bake in security
  • 1
    Easy to use
  • 1
    Good documentation
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    - No public GitHub repository available -

    What is Packer?

    Packer automates the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images.

    What is Stacker 1?

    stacker is a tool and library used to create & update multiple CloudFormation stacks. stacker Blueprints are written in troposphere, though the purpose of most templates is to keep them as generic as possible and then use configuration to modify them.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Packer?
    What companies use Stacker 1?
      No companies found
      Manage your open source components, licenses, and vulnerabilities
      Learn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Packer?
      What tools integrate with Stacker 1?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to Packer and Stacker 1?
      Docker
      The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
      Terraform
      With Terraform, you describe your complete infrastructure as code, even as it spans multiple service providers. Your servers may come from AWS, your DNS may come from CloudFlare, and your database may come from Heroku. Terraform will build all these resources across all these providers in parallel.
      Vagrant
      Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.
      Ansible
      Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
      Git
      Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
      See all alternatives