<div dir="ltr">Hey Serge,<div><br></div><div>I'm not opposed the idea but just trying to understand the motivation behind it. We are doing exactly what you described (daily builds uses somename-date-buildnumber and two symlinks latest and stable points some containers) and I'm just using something like following</div>

<div><br></div><div><font face="arial, sans-serif">sudo lxc-clone -o $(basename $(readlink SOMEPATH/latest)) -n SOMEOTHERNAME -s</font><br></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">and I'm just wondering does it really worth adding more code for doing that?</font></div>

<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Cheers,</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 20, 2013 at 4:55 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
one idea that has been brought up is to support 'aliases'.  So if you're<br>
locally building a daily pristine container, say at 'c-2013-08-20',<br>
you might want to then have a 'c-latest' alias or link pointing to the<br>
latest container, so you can always just<br>
<br>
        sudo lxc-clone -o c-latest -n test1 -s<br>
<br>
The most obvious idea would be to use a symbolic link.  However, while<br>
that mostly works, it's actually not perfect - lxc_container_new()<br>
will be called with the name you passed in (c-latest), not with the<br>
symlinked name.<br>
<br>
Another idea would be to support a $lxcpath/$lxcname/config consisting<br>
of only 'lxc.alias = c-2013-0820'.<br>
<br>
Do people have any other ideas?<br>
<br>
I'm thinking symbolic link may be the simplest thing to support -<br>
lxc_container_new() could immediately readlink() to get the real<br>
container name.<br>
<br>
-serge<br>
<br>
------------------------------------------------------------------------------<br>
Introducing Performance Central, a new site from SourceForge and<br>
AppDynamics. Performance Central is your source for news, insights,<br>
analysis and resources for efficient Application Performance Management.<br>
Visit us today!<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Lxc-devel mailing list<br>
<a href="mailto:Lxc-devel@lists.sourceforge.net">Lxc-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>S.Çağlar Onur <<a href="mailto:caglar@10ur.org">caglar@10ur.org</a>>
</div>