Introduction to Packer

What is Packer?

Packer is a tool to create identical/similar machines for multiple platforms from a single source configuration

Installing Packer

choco install packer -y
  • Mac
brew install packer
  • Linux
  • Install unzip:

ubuntu

sudo apt-get install unzip

RedHat

sudo yum install unzip
  • Install Packer: Download latest version from here
# Download packer
wget https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_linux_amd64.zip
# extract packer
unzip packer_1.3.3_linux_amd64.zip -d packer
# move extracted folder to /usr/local
sudo mv packer /usr/local/
  • Set Packer environment Add the following line to /etc/environment at the end of the file
export PATH="$PATH:/usr/local/packer"

Activate the PATH with

source /etc/environment
  • Check the installation Execute the following command
packer --help

Packer usage in DevOps Pipeline

Packer sample usage

By continuous learner

devops & cloud enthusiastic learner

1 comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Integration by Acurax Wordpress Developers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube