<div dir="ltr">Is there a major reason that this build process can't be done at the docker level, capture a version of the container, push it to a docker repo (our own or dockerhub) and then have the AWS instance deploys just pull down the already built containers?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 16, 2015 at 5:51 PM, Andy McKay <span dir="ltr"><<a href="mailto:amckay@mozilla.com" target="_blank">amckay@mozilla.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">In the Marketplace docker files we have lines that run pip [1], bower or npm [2]. One of the main problems is this is slow, we get real perf problems on building out containers on AWS.<div><br></div><div>The suggested way I think to do this is build out all the requirements, zip them and stick them somewhere. Then instead use an ADD [3] command to pull the file down (which can be a URL).</div><div><br></div><div>So now I’ve got find a way to build those zip files, store them, make sure I get the right version and so on. That does feel like I’m reinventing a wheel here. Before I do that, is there a better way?<br><div><br></div><div><br></div><div>[1] <a href="https://github.com/mozilla/zamboni/blob/master/Dockerfile#L28" target="_blank">https://github.com/mozilla/zamboni/blob/master/Dockerfile#L28</a></div><div>[2] <a href="https://github.com/mozilla/fireplace/blob/master/Dockerfile#L15-L16" target="_blank">https://github.com/mozilla/fireplace/blob/master/Dockerfile#L15-L16</a></div><div>[3] <a href="https://docs.docker.com/reference/builder/#add" target="_blank">https://docs.docker.com/reference/builder/#add</a> </div></div></div><br>_______________________________________________<br>
Dev-docker mailing list<br>
<a href="mailto:Dev-docker@mozilla.org">Dev-docker@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/dev-docker" target="_blank">https://mail.mozilla.org/listinfo/dev-docker</a><br>
<br></blockquote></div><br></div>