Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HashiCorp Packer in Production

You're reading from   HashiCorp Packer in Production Efficiently manage sets of images for your digital transformation or cloud adoption journey

Arrow left icon
Product type Paperback
Published in Jul 2023
Publisher Packt
ISBN-13 9781803246857
Length 190 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
John Boero John Boero
Author Profile Icon John Boero
John Boero
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Packer’s Beginnings
2. Chapter 1: Packer Fundamentals FREE CHAPTER 3. Chapter 2: Creating Your First Template 4. Chapter 3: Configuring Builders and Sources 5. Chapter 4: The Power of Provisioners 6. Chapter 5: Logging and Troubleshooting 7. Part 2: Managing Large Environments
8. Chapter 6: Working with Builders 9. Chapter 7: Building an Image Hierarchy 10. Chapter 8: Scaling Large Builds 11. Part 3: Advanced Customized Packer
12. Chapter 9: Managing the Image Lifecycle 13. Chapter 10: Using HCP Packer 14. Chapter 11: Automating Packer Builds 15. Chapter 12: Developing Packer Plugins 16. Index 17. Other Books You May Enjoy

Preface

As a frequent blogger of HashiCorp products, it’s an honor to present this more thorough exploration of the open source Packer tool. Packer is one of HashiCorp’s simplest and most elegant tools with one simple task. It builds images and artifacts in a consistent way for different environments and cloud projects. If you’re thinking of carrying out a lift-and-shift migration, there are a series of questions you may have:

  • What operating system will you boot with?
  • How will you apply updates and test patches across your development lifecycle?
  • How can you ensure your on-premises images match the ones in your global cloud environments?
  • What if you have multiple clouds to keep track of?
  • How can you build matching container images for serverless environments or orchestration platforms?

These are the questions that Packer solves for most users. On the journey of writing this book, I went even deeper to try and show how Packer can do even more than it was built for. I wanted to answer the questions that people don’t think to ask about Packer. In addition to cloud environments, we’ll explore everything from the high-level basics of local environments to complex cloud image libraries. We’ll even push Packer further and experiment with some interesting use cases Packer hasn’t necessarily been positioned for. The questions you’ll be asking afterward may surprise you:

  • Are your cloud applications prepared for ARM or RISC-V architectures to cut your compute costs in half?
  • Can you run tests and compliance profiles as part of your automation pipelines?
  • Can you build and test mobile apps along with your cloud images?
  • Can you build and test your IoT devices and microcontrollers along with a cloud backend?
  • Can Packer save you time on slow Terraform tasks?

The answers to these questions are surprising, and it turns out Packer can do every one of these things. It can replicate your local VMware environments in the cloud for lift-and-shift workloads. It can update your container image registry at the same time as it builds a virtual image or even a bare-metal environment for storage or network booting. This book and the corresponding GitHub repo show you how.

This book starts off with a foundation of manual builds, working our way up to build automation. Build automation can help speed up your development experience, so you may want to go back over the book in reverse using automation.

I would like to thank a few members of the Packer engineering team who have occasionally tested, provided feedback, or helped guide some of the sample code for this book, namely Megan Marsh, Wilken Rivera, and Lucas Bajolet.

Any author commissions for this title will be donated to the Raspberry Pi Foundation to encourage kids to learn how to code.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image