Using Packer to modify source images
Packer is a tool used for automating the creation of machine images. In this recipe, we’re going to use Packer to reference an Oracle Linux 8 platform image as its source, install something using a provisioner, and push up a new OCID image with these changes onto OCI.
Note
Although OCI features a free tier that contains “Always Free” resources, this does not include the ability to store images. If you wish to follow along with this recipe, you will need to use a paid account.
Getting ready
For this recipe, you will need the following:
- Oracle Linux
- Packer
Refer to the Technical requirements section at the beginning of this chapter if you need help installing Packer.
How to do it…
Packer is often overlooked because it seems so simple on the surface; however, don’t let this simplicity fool you – Packer is incredibly powerful and useful. In this recipe, we’re going...