The incus plugin allows building containers for incus, by starting an incus container, running provisioners within this container, then saveing the container as an incus image.
To install this plugin, copy and paste this code into your Packer configuration, then run packer init
.
packer {
required_plugins {
incus = {
source = "github.com/bketelsen/incus"
version = "~> 1"
}
}
}
Alternatively, you can use packer plugins install
to manage installation of this plugin.
$ packer plugins install github.com/bketelsen/incus
- incus - The incus builder builds containers with incus by starting a container, provisioning it, and exporting it as a tar.gz archive of the root file system.