<div dir="ltr">I've been thinking about this a bit as well, and think that we should consider using the docker label schema (<a href="http://label-schema.org/rc1/">http://label-schema.org/rc1/</a>) as a solution for #1, it would be possible to add labeling to kolla-build to add these labels simply. This solution is gaining traction in the docker community, and integrates well with external tools e.g. <a href="https://microbadger.com">https://microbadger.com</a>. One of the maintainers of this project (Adrian Mouat) works in the same room as me and I've cc'd him in case he has any additional insight or perspective that may be useful.<br><br>Unfortunately this does not provide a solution to the 2nd problem, and currently it is not possible to query labels from within a container. I think Steve's suggestion of a simple shell tool to query the containers package manager(s) and produce a report is probably the right way to go: but we should draw up a specification that scoped what data we collected in such a manifest as if we simply do the equivalent of 'rpm -qa' then I think Paul's point is valid and we don't gain much from the exercise.<div><br><div>Cheers</div><div><br></div><div>Pete</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 18, 2016 at 11:51 AM, Steven Dake (stdake) <span dir="ltr"><<a href="mailto:stdake@cisco.com" target="_blank">stdake@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Zhu,</div>
<div><br>
</div>
<div>This isn’t the first time this question has been asked :)</div>
<div><br>
</div>
<div>Since this is a technical matter, I’ve copied openstack-dev for a wider audience. I don’t have a clear solution to obtaining version manifests for container content or the upstream container version. Perhaps someone in our broader community may have
an answer.</div>
<div><br>
</div>
<div>The best I’ve got is we could add a general shell command that can be run with docker exec to obtain a proper version manifest of both 1 and 2 (formatted in YAML or plaintext). This could be placed in the base container image to enable a general diagnostic
and certificate of origin tool.</div>
<div><br>
</div>
<div>Perhaps someone has a better solution?</div>
<div><br>
</div>
<div>Regards</div>
<div>-steve</div>
<div><br>
</div>
<div>
<div id="m_1801004886054323939MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="m_1801004886054323939OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>"<a href="mailto:zhu.zeyu@zte.com.cn" target="_blank">zhu.zeyu@zte.com.cn</a>" <<a href="mailto:zhu.zeyu@zte.com.cn" target="_blank">zhu.zeyu@zte.com.cn</a>><br>
<span style="font-weight:bold">Date: </span>Friday, November 18, 2016 at 1:56 AM<br>
<span style="font-weight:bold">To: </span>Steven Dake <<a href="mailto:stdake@cisco.com" target="_blank">stdake@cisco.com</a>><br>
<span style="font-weight:bold">Subject: </span><no subject><br>
</div>
<div><br>
</div>
<span>
<div>
<div><font size="4" face="Times New Roman">Hello,nice to meet you. I am a contributor of Kolla.</font><br>
<font size="4" face="Times New Roman">Excuse me, I have a question to bother you.</font><br>
<font size="4" face="Times New Roman">The question is that how to get openstack component version from a running container or image.</font><br>
<font size="4" face="Times New Roman">you know , the version info is wrapped by the container, it is not easy to get them
</font><br>
<font size="4" face="Times New Roman">there are two type of versions </font><br>
<font size="4" face="Times New Roman">one: version in a image, two: version in a running container
</font><br>
<font size="4" face="Times New Roman">two is easy, for example , we can get it by calling docker exec...
</font><br>
<font size="4" face="Times New Roman">but how to get the one, Is there any way, Thanks.</font></div>
</div>
</span></span>
</div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" width="450" style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium;table-layout:fixed"><tbody><tr><td align="left" valign="top" width="90"><p style="margin-right:10px;font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px"><a href="https://port.direct" style="text-decoration:none" target="_blank"><img src="https://raw.githubusercontent.com/encharm/Font-Awesome-SVG-PNG/master/black/png/256/anchor.png" alt="Port.direct" border="0" height="80" width="80"></a></p></td><td align="left" nowrap width="370"><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33);margin-bottom:10px"><span style="font-weight:bold;display:inline">Pete Birley</span> <span style="display:inline">/</span> <span style="display:inline">Director</span> <span style="display:inline"><br></span><a href="mailto:pete@port.direct" style="color:rgb(71,124,204);text-decoration:none;display:inline" target="_blank">pete@port.direct</a><span style="display:inline"> / </span><span style="display:inline">+447446862551</span></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px"><span style="font-weight:bold;color:rgb(33,33,33);display:inline"><strong>PORT.</strong>DIRECT</span> <span style="display:inline"><br></span><span></span><span style="color:rgb(33,33,33);display:inline">United Kingdom</span> <span></span><span style="display:inline"><br></span><a href="https://port.direct" style="color:rgb(71,124,204);text-decoration:none;display:inline" target="_blank">https://port.direct</a></p><p style="font-size:0px;line-height:0;font-family:Helvetica,Arial,sans-serif"></p></td></tr><tr><td colspan="2"></td></tr><tr><td colspan="2"></td></tr><tr><td colspan="2"><p style="font-family:Helvetica,Arial,sans-serif;color:rgb(33,33,33);font-size:9px;line-height:12px">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Port.direct is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p></td></tr></tbody></table></div></div></div></div></div></div>
</div>