From the course: Learning HashiCorp Packer
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
CI pipeline - Packer Tutorial
From the course: Learning HashiCorp Packer
CI pipeline
- [Instructor] What we've done so far in this course is we've built ourselves a Hardened AMI with basic security provisions; we've used that AMI to build a Jenkins AMI based upon it. So that Jenkins AMI is also hardened. We've launched an image of that Jenkins instance, which has Packer Ansible pre-installed on it. And what we're going to do in this video is we're going to run a CI Pipeline which will run Packer, taking that hardened image again, and build a new Jenkins AMI from source control. So this is simply our CI pipeline built with components that is made of Packer-built images. I'm going to call it Jenkins Packer Pipeline. And it's gonna be a pipeline style build. We're going to go right down to the bottom here and tell Jenkins that the pipeline script we want to run comes from source control, in particular Git, and copy my Git URL, and paste that in. Now we'll save that, and click Build Now. So Jenkins has checked out our repository and is running the steps that we filled in…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.