-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HCP Packer Support #144
Comments
Hi @lucymhdavies, I'm not very familiar with HCP, so I can't provide guidance on how it would work.. I am happy to accept PR related to it, as from the link you sent, it seems useful! |
Thanks. No ideas when I'd be able to get around to doing it, but I've had some initial thoughts on what it could look like. I'll experiment and let you know how it turns out. Looking at the Image type...
As this plugin outputs directly to files, then just the filename would make sense here. It's not really a "unique" reference, but it's the best we've got for how this plugin works.
Here, just
As the plugin isn't responsible for uploading the file anywhere in particular, I think we may be able to leave this blank. This plugin doesn't really have a concept of "region".
Potentially a checksum of the image would be useful to add here. Unlike with plugins which build things like Amazon Machine Images, we don't really have a well defined concept of a unique ID for the created image.
We do have a well defined concept for this one. For comparison, here's what we see for an image I've built in AWS: The "Build Labels" are metadata I've added myself, and the |
I'm currently making use of this plugin to generate Raspberry Pi images.
(which it does very well, by the way)
I'd like to be able to hook into HCP Packer, to keep track of image versions (which are stable, which I'm still testing, etc.)
My wise colleagues over in the HCP Packer team advise me this is usually relatively straightforward, and requires updating the Artifact metadata
https://www.packer.io/docs/plugins/hcp-support
I'm not entirely sure what such a metadata would look like in the context of this plugin, as (currently, as far as I can see) it just creates local disk images (and optionally flashes them), with the user running Packer responsible for copying those images somewhere.
But if you have thoughts as to how it could work, and would be happy accepting a PR, I'm up for experimenting with it.
The text was updated successfully, but these errors were encountered: