Packer is a tool for creating machine and container images for multiple platforms from a single source configuration. It allows users to automate the creation of machine images by defining infrastructure in configuration files and running builds that put everything needed to reproduce the machine into an image. Packer templates define builders, provisioners, variables and other configuration to automate the creation of images. This simplifies deployment by allowing images to be built once and then easily deployed to different environments like development, testing and production.
4. About 20 years ago…
Set up machine & network.. 2 hour
Install operation system.. 30 min
Install software.. N hour
Configuring & deploying.. N hour
1 day Setup machine, Setup OS, Manually setup software, etc
About 10 years ago…
We got VMware, VirtualBox..
We got Puppet, Chef, Ansible..
Everything is automatic!!
Setup machine is just one click..
Setup machine, Auto setup everything 3 hours
5. About 5 years ago…
We got clouds!
!
We don’t even need to
have our own machine!
!
What a perfect world..
Auto setup everything 30 mins
6. We trigger up a instance then trigger the auto-configure
tool, and we can just waiting..
!
I like AWS, I like Anisble, it make everything
automatical, what we need to do is just waiting..
Why we
Hold..
still have to
keep waiting ?
7. 1 min
Start up instance
30 mins
29 mins
Auto-configure server
Put
everything
into the
image
13. Packer as part of pipeline
Developing Testing Delivering
★ Fit for small system
★ Deploying can be tedious for large system
★ Take longer time and more network bandwidth
with new test environment added
14. Packer as part of pipeline
Developing Testing Packing Delivering
Deliver images
Time saving
Safer deployment
Parallel builds