<div dir="ltr">Just last week a few of us were just discussing the possible need for an optional "build" hook which was restricted (by policy) to just setup dependencies, and not actually configure or start anything. It would solve this immediate need, and might be useful at some point in the future as a place to snapshot images of the unit's container in order to enhance the performance of further "add-unit" commands. <div>
<br></div><div style>The current use case is compelling enough that I think this would be valuable to us even without consideration of the future possibilities that this could bring when units are generally containerized. </div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 10:47 AM, Stuart Bishop <span dir="ltr"><<a href="mailto:stuart.bishop@canonical.com" target="_blank">stuart.bishop@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, May 24, 2013 at 4:25 PM, <<a href="mailto:franck.dehay@orange.com">franck.dehay@orange.com</a>> wrote:<br>
> Couldn’t we get a “pre-install” hook somewhere?<br>
<br>
</div>I would certainly like to see some sort of a pre-install hook or list<br>
of dependencies- perhaps just a list of packages in one of the top<br>
level yaml files that are installed before the install hook is<br>
invoked.<br>
<br>
A few times I've seen problems where the install hook fails because<br>
the module the hook is in or one of its helper modules is attempting<br>
to import from a library that isn't yet installed. There are numerous<br>
examples in the charm store of charms with imports being done inside a<br>
function's scope instead of in the module's scope to avoid this.<br>
<br>
This could also provide a nicer mechanism for distributing common<br>
libraries of charm helpers that is better than the current process of<br>
just making a copy of the helpers into your charm.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Stuart Bishop <<a href="mailto:stuart.bishop@canonical.com">stuart.bishop@canonical.com</a>><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</div></div></blockquote></div><br></div>