<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
@font-face
        {font-family:SimSun}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black}
span.HTMLPreformattedChar
        {font-family:Consolas;
        color:black}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="white" vlink="purple" lang="EN-CA" link="blue">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I'm kind of uncomfortable as an op with the prebundled stuff. how do you upgrade things when needed if there is no way to pull updated images from a central place?<br>
<br>
Thanks,<br>
Kevin<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF116420"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Hongbin Lu [hongbin.lu@huawei.com]<br>
<b>Sent:</b> Tuesday, April 19, 2016 11:56 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [Magnum]Cache docker images<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Eli,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">The approach of pre-pulling docker images has a problem. It only works for specific docker storage driver. In comparison, the tar file approach is portable
 across different storage drivers.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Best regards,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hongbin</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext" lang="EN-US"> taget [mailto:qiaoliyong@gmail.com]
<br>
<b>Sent:</b> April-19-16 4:26 AM<br>
<b>To:</b> openstack-dev@lists.openstack.org<br>
<b>Subject:</b> Re: [openstack-dev] [Magnum]Cache docker images</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt">hi hello again<br>
<br>
I believe you are talking about this bp <a href="https://blueprints.launchpad.net/magnum/+spec/cache-docker-images" target="_blank">
https://blueprints.launchpad.net/magnum/+spec/cache-docker-images</a><br>
then ignore my previous reply, that may another topic to solve network limited problem.<br>
<br>
I think you are on the right way to build docker images but this image could only bootstrap by cloud-init, without cloud-init<br>
the container image tar file are not loaded at all, but seems this may not be the best way.<br>
<br>
I'v suggest that may be the best way is we pull docker images while building atomic-image. Per my understanding, the<br>
image build process is we mount the image to read/write mode to some tmp directory and chroot to to that dircetory,<br>
we can do some custome operation there.<br>
<br>
I can do a try on the build progress(guess rpm-ostree should support some hook scripts)<br>
<br>
</p>
<div>
<p class="MsoNormal">On 2016<span style="font-family:SimSun" lang="ZH-CN">年</span>04<span style="font-family:SimSun" lang="ZH-CN">月</span>19<span style="font-family:SimSun" lang="ZH-CN">日</span> 11:41, Eli Qiao wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">@wanghua<br>
<br>
I think there were some discussion already , check <a href="https://blueprints.launchpad.net/magnum/+spec/support-private-registry" target="_blank">
https://blueprints.launchpad.net/magnum/+spec/support-private-registry</a><br>
and <a href="https://blueprints.launchpad.net/magnum/+spec/allow-user-softwareconfig" target="_blank">
<span style="font-size:9.0pt; font-family:"Arial","sans-serif"; color:#0033AA; text-decoration:none">https://blueprints.launchpad.net/magnum/+spec/allow-user-softwareconfig</span></a></p>
<div>
<p class="MsoNormal">On 2016<span style="font-family:SimSun" lang="ZH-CN">年</span>04<span style="font-family:SimSun" lang="ZH-CN">月</span>19<span style="font-family:SimSun" lang="ZH-CN">日</span> 10:57,
<span style="font-family:SimSun" lang="ZH-CN">王华</span> wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi all, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal">We want to eliminate pulling docker images over the Internet on bay provisioning. There are two problems of this approach:</p>
</div>
<div>
<p class="MsoNormal">1. Pulling docker images over the Internet is slow and fragile.</p>
</div>
<div>
<p class="MsoNormal">2. Some clouds don't have external Internet access.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">It is suggested to build all the required images into the cloud images to resolved the issue.</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Here is a solution:</p>
</div>
<div>
<p class="MsoNormal">We export the docker images as tar files, and put the tar files into a dir in the image when we build the image. And we add scripts to load the tar files in cloud-init, so that we don't need to download the docker images.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Any advice for this solution or any better solution?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Regards,</p>
</div>
<div>
<p class="MsoNormal">Wanghua</p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<br>
</p>
<pre>__________________________________________________________________________</pre>
<pre>OpenStack Development Mailing List (not for usage questions)</pre>
<pre>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
</p>
<pre>-- </pre>
<pre>Best Regards, Eli Qiao (<span style="font-family:SimSun" lang="ZH-CN">乔立勇</span>)</pre>
<pre>Intel OTC China</pre>
<p class="MsoNormal"><br>
<br>
<br>
</p>
<pre>__________________________________________________________________________</pre>
<pre>OpenStack Development Mailing List (not for usage questions)</pre>
<pre>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
</p>
<pre>-- </pre>
<pre>Best Regards, Eli Qiao (<span style="font-family:SimSun" lang="ZH-CN">乔立勇</span>)</pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>