How to pack your hooks-based charm with Charmcraft

The original post included checking out the original tiny-bash repository so users could follow the tutorial, but this was removed in a later edit and the name remained. @tmihoc, could we have the first part of the tutorial back to provide context to the example yaml file?

@cmatsuoka I was trying to modularize the content and isolate here just the crucial step related to the parts definition in the charmcraft.yaml file. But I see now how that resulted in truncated content. I’ve added the context back in now. But I’m still wondering: What does “the part definition for a hooks-based charm” really mean? Which line(s) specifically make the part definition suitable for a hooks-based charm? I think it would help to clarify.

Thanks Teodora. Unlike charms using the “charm” plugin, hooks-based charms are free-form. What we do here is to allow any content to be included using the “dump” plugin.

1 Like

Hah. It would be nice to explain this somewhere.

1 Like