<div dir="ltr">Hi Vesak, KB,<div>      could we meet over bluejeans some time?</div><div>I am confused with what we are trying to achieve and why.</div><div><br></div><div>Thanks</div><div>Bamacharan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 6:54 PM, Karanbir Singh <span dir="ltr">&lt;<a href="mailto:mail-lists@karan.org" target="_blank">mail-lists@karan.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 16/02/16 13:15, Bamacharan Kundu wrote:<br>
&gt; Hi Vašek,<br>
&gt;     Yes, I have created pipeline with a nodejs based<br>
&gt; application(<a href="https://github.com/bamachrn/cccp-demo-test" rel="noreferrer" target="_blank">https://github.com/bamachrn/cccp-demo-test</a>)<br>
&gt; with openshift build system. Openshift template is taking the git repo<br>
&gt; URI as input, and building, testing within the containers.<br>
&gt; As a output this is pushing the ready to run containers to the registry.<br>
&gt;<br>
&gt; Went through the atomic reactor for reading index.yaml and cccp.yaml<br>
&gt; written by rtnpro, kbsingh.<br>
&gt;<br>
&gt; I am currently working to understand the openshift template and build<br>
&gt; config to automate the build<br>
&gt; on git push or scheduled time.<br>
&gt;<br>
&gt; Today I am trying to trigger with Github webhook. This is not triggering<br>
&gt; the build due to my IP being in private network.<br>
</span>&gt; also waiting for the <a href="http://ci.centos.org" rel="noreferrer" target="_blank">ci.centos.org</a> &lt;<a href="http://ci.centos.org" rel="noreferrer" target="_blank">http://ci.centos.org</a>&gt; access to use<br>
<span class="">&gt; jenkins in build process.<br>
&gt;<br>
&gt; Please suggest if there is another way to achieve this.<br>
<br>
<br>
</span>Looks like we need to setup a syncup point<br>
<span class=""><br>
&gt;<br>
&gt; Thanks<br>
&gt; Bamacharan<br>
&gt;<br>
&gt; On Tue, Feb 16, 2016 at 6:29 PM, Vaclav Pavlin &lt;<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a><br>
</span><span class="">&gt; &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hey, any progress here?<br>
&gt;<br>
&gt;     Vašek<br>
&gt;<br>
&gt;     On Wed, Feb 10, 2016 at 4:19 PM, Vaclav Pavlin &lt;<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a><br>
</span><span class="">&gt;     &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         On Wed, Feb 10, 2016 at 3:33 PM, Bamacharan Kundu<br>
</span><span class="">&gt;         &lt;<a href="mailto:bamachrn@gmail.com">bamachrn@gmail.com</a> &lt;mailto:<a href="mailto:bamachrn@gmail.com">bamachrn@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;             Hi Vaclav,<br>
&gt;<br>
&gt;             On Wed, Feb 10, 2016 at 6:53 PM, Vaclav Pavlin<br>
</span><div><div class="h5">&gt;             &lt;<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a> &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;                 Hi Bamacharan,<br>
&gt;<br>
&gt;                 I&#39;d be careful with per commit builds in case of build<br>
&gt;                 from Dockerfile as it takes time and resources<br>
&gt;                 (presumably a lot of both) because we have to build in<br>
&gt;                 clean env and with --no-cache.<br>
&gt;<br>
&gt;<br>
&gt;             Why don&#39;t we take a layered based aproach, we can take the<br>
&gt;             base image from local system then build it, this will save<br>
&gt;             lot of time? I saw multiple dockerfiles for<br>
&gt;             build,test,delivery which are intern the same image only.<br>
&gt;<br>
&gt;<br>
&gt;         To un-confuse people who didn&#39;t see our IRC convo - the<br>
&gt;         Dockerfiles in cccp-demo-openshift repo represent containers<br>
&gt;         which implement individual steps of the workflow - not the<br>
&gt;         images/containers which are tested and delivered.<br>
&gt;<br>
&gt;         To answer  &quot;Why don&#39;t we take a layered based aproach&quot;: We do,<br>
&gt;         building from Dockerfile follows the layered approach. The<br>
&gt;         problem I am trying to emphasize is that we need clean<br>
&gt;         environment for every build, otherwise we could introduce<br>
&gt;         inconsistency again..But I think this could be easily solved by<br>
&gt;         using Atomic Reactor instead of my custom hacky script:-)<br>
&gt;<br>
&gt;<br>
&gt;         Cheers,<br>
&gt;         Vašek<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 I am not sure what you mean by &quot; built image would be<br>
&gt;                 deployed to openshift instance&quot;.<br>
&gt;<br>
&gt;<br>
&gt;              I was saying about building the docker container images in<br>
&gt;             openshift for the build, test, delivery environments.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 My idea would be to go with the yaml files I saw in<br>
&gt;                 cccp-index and rtnpro&#39;s example repo as an UI right now<br>
&gt;                 - keep the code as little as possible. Hook it up to my<br>
&gt;                 example with some scripting, setup OpenShift and<br>
&gt;                 registry and try to get whole workflow working.<br>
&gt;<br>
&gt;<br>
&gt;             Yes, I was going through the same. I tried with building the<br>
&gt;             example you have put. I am going through the cccp-index and<br>
&gt;             yaml file to add with the example you have put.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 I as a developer want to add a yaml file to my repo and<br>
&gt;                 submit my repo url somewhere, so that it gets rebuilt,<br>
&gt;                 tested and pushed to a given registry regularly (like 4<br>
&gt;                 times a day for start). I also want to be notified about<br>
&gt;                 new build and test results.<br>
&gt;<br>
&gt;<br>
&gt;             Yes, this yaml will help to handle all the linking and<br>
&gt;             container management stuff.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 Done:-) We can polish it later.<br>
&gt;<br>
&gt;                 Makes sense?<br>
&gt;<br>
&gt;             Sure, going ahead with this.<br>
&gt;<br>
&gt;             Regards<br>
&gt;             Bamacharan<br>
&gt;<br>
&gt;<br>
&gt;                 On Wed, Feb 10, 2016 at 12:47 PM, Bamacharan Kundu<br>
</div></div><span class="">&gt;                 &lt;<a href="mailto:bamachrn@gmail.com">bamachrn@gmail.com</a> &lt;mailto:<a href="mailto:bamachrn@gmail.com">bamachrn@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                     On Wed, Feb 10, 2016 at 4:30 PM, Karanbir Singh<br>
</span><span class="">&gt;                     &lt;<a href="mailto:kbsingh@centos.org">kbsingh@centos.org</a> &lt;mailto:<a href="mailto:kbsingh@centos.org">kbsingh@centos.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;                         -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt;                         Hash: SHA1<br>
&gt;<br>
&gt;                         On 10/02/16 07:29, Bamacharan Kundu wrote:<br>
&gt;                         &gt; Hi,<br>
&gt;                         &gt;<br>
&gt;                         &gt; Vaclav presented the build pipeline very nicely and this would<br>
&gt;                         &gt; take out lot of tension for building the code, checking the code<br>
&gt;                         &gt; standards and test cases from the developer.<br>
&gt;                         &gt;<br>
&gt;                         &gt; I would like to add few points on this.<br>
&gt;                         &gt;<br>
&gt;                         &gt; On Tue, Feb 9, 2016 at 8:08 PM, Vaclav Pavlin &lt;<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a> &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a>&gt;<br>
</span>&gt;                         &gt; &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a> &lt;mailto:<a href="mailto:vpavlin@redhat.com">vpavlin@redhat.com</a>&gt;&gt;&gt;<br>
<div><div class="h5">&gt;                         wrote:<br>
&gt;                         &gt;<br>
&gt;                         &gt;<br>
&gt;                         &gt; Hi all,<br>
&gt;                         &gt;<br>
&gt;                         &gt; As KB wrote, I brought up the idea of using OpenShift as a glue<br>
&gt;                         &gt; (i.e. workflow controller). The result can be found here:<br>
&gt;                         &gt;<br>
&gt;                         &gt; <a href="https://github.com/vpavlin/cccp-demo-openshift" rel="noreferrer" target="_blank">https://github.com/vpavlin/cccp-demo-openshift</a><br>
&gt;                         &gt;<br>
&gt;                         &gt; TL;DR:<br>
&gt;                         &gt;<br>
&gt;                         &gt; The repository contains OpenShift Template defining the workflow -<br>
&gt;                         &gt; build,test, delivery and (very poorly) implements the steps through<br>
&gt;                         &gt; Docker images (i.e. Dockerfiles and run scripts).<br>
&gt;                         &gt;<br>
&gt;                         &gt; The developer should do only git push to his VCS and this should<br>
&gt;                         &gt; trigger the build process in the pipeline.<br>
&gt;<br>
&gt;                         in an onprem story that would map well, but note<br>
&gt;                         that were aiming to<br>
&gt;                         run a hosted service with a distinct UI ( even<br>
&gt;                         if the UI is no UI )<br>
&gt;<br>
&gt;<br>
&gt;                     Yes, now I got it. I had a thought to minimize the<br>
&gt;                     number of Dockerfiles,<br>
&gt;                     so that the user does not get confused of.<br>
&gt;<br>
&gt;<br>
&gt;                         &gt;<br>
&gt;                         &gt; In this TDD process all the environments (including the build,<br>
&gt;                         &gt; test, delivery) would be created as a container and once the step<br>
&gt;                         &gt; is over it will destroy the environment. As output this will<br>
&gt;                         &gt; generate a application runtime along with the successfully built<br>
&gt;                         &gt; application code to registry.<br>
&gt;                         &gt;<br>
&gt;                         &gt; As you mentioned this would be tagged with test along with jenkins<br>
&gt;                         &gt; build id, so that developer or QA can trace for which commit this<br>
&gt;                         &gt; is built.<br>
&gt;                         &gt;<br>
&gt;                         &gt; Then for the next stages, successfully built image would be<br>
&gt;                         &gt; deployed to openshift instance to get through the test, delivery<br>
&gt;                         &gt; stages checking, along with the quality gates.<br>
&gt;                         &gt;<br>
&gt;                         &gt; all the stages should be linked to pipeline and should be easily<br>
&gt;                         &gt; re-producible so that any one can check or regenerate the issues<br>
&gt;                         &gt; instantly.<br>
&gt;<br>
&gt;                         add another dimension there - collection of<br>
&gt;                         related containers, ie.<br>
&gt;                         the entire microservice should be reproduceable.<br>
&gt;<br>
&gt;                     This means system needs to maintain all the linking<br>
&gt;                     and volume sharing<br>
&gt;                     of the components.<br>
&gt;<br>
&gt;                         &gt;<br>
&gt;                         &gt; It&#39;s easily runnable in Vagrant with use of Project Atomic<br>
&gt;                         &gt; Developer Bundle.<br>
&gt;                         &gt;<br>
&gt;                         &gt; If you are interested in more info, I&#39;d suggest to read the readme<br>
&gt;                         &gt; in the repo, I hope it summarizes it clearly.<br>
&gt;                         &gt;<br>
&gt;                         &gt; It&#39;s a very minimal demo, but I think it suggests the path, which<br>
&gt;                         &gt; could take us to the Unicorns land, quite well:).<br>
&gt;                         &gt;<br>
&gt;                         &gt; Let me know in case of any questions, suggestions or requests for<br>
&gt;                         &gt; guidance in case anybody decides to take this further.<br>
&gt;                         &gt;<br>
&gt;                         &gt; I would like to take this further, please let me know if my<br>
&gt;                         &gt; thought process is in the same line as yours or any changes,<br>
&gt;                         &gt; suggestions.<br>
&gt;<br>
&gt;                         we need to work through whats needed to now<br>
&gt;                         integrate with the<br>
&gt;                         cccp-index content, and then map that back to<br>
&gt;                         deliverables. I had<br>
&gt;                         asked Zeeshan to look at registry side for<br>
&gt;                         delivery space, unsure how<br>
&gt;                         far he&#39;s gotten with that.<br>
&gt;<br>
&gt;<br>
&gt;                     I believe, I should look for integration with<br>
&gt;                     cccp-index content?<br>
&gt;<br>
&gt;                     Regards<br>
&gt;                     Bamacharan<br>
&gt;<br>
&gt;                     --<br>
&gt;                     Bamacharan Kundu<br>
&gt;                     IRC Nick- bamachrn<br>
&gt;                     <a href="http://bamacharankundu.wordpress.com/" rel="noreferrer" target="_blank">http://bamacharankundu.wordpress.com/</a><br>
&gt;<br>
&gt;                     _______________________________________________<br>
&gt;                     CentOS-devel mailing list<br>
</div></div>&gt;                     <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a> &lt;mailto:<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>&gt;<br>
<span class="">&gt;                     <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 --<br>
&gt;                 Developer Experience Team<br>
&gt;                 Brno, Czech Republic<br>
</span>&gt;                 Phone: +420 739 666 824 &lt;tel:%2B420%20739%20666%20824&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;                 _______________________________________________<br>
&gt;                 CentOS-devel mailing list<br>
&gt;                 <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a> &lt;mailto:<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>&gt;<br>
<span class="">&gt;                 <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             --<br>
&gt;             Bamacharan Kundu<br>
&gt;             IRC Nick- bamachrn<br>
&gt;             <a href="http://bamacharankundu.wordpress.com/" rel="noreferrer" target="_blank">http://bamacharankundu.wordpress.com/</a><br>
&gt;<br>
&gt;             _______________________________________________<br>
&gt;             CentOS-devel mailing list<br>
</span>&gt;             <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a> &lt;mailto:<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>&gt;<br>
<span class="">&gt;             <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Developer Experience Team<br>
&gt;         Brno, Czech Republic<br>
</span>&gt;         Phone: +420 739 666 824 &lt;tel:%2B420%20739%20666%20824&gt;<br>
<span class="">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Developer Experience Team<br>
&gt;     Brno, Czech Republic<br>
&gt;     Phone: +420 739 666 824<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     CentOS-devel mailing list<br>
</span>&gt;     <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a> &lt;mailto:<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>&gt;<br>
<span class="im HOEnZb">&gt;     <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Bamacharan Kundu<br>
&gt; IRC Nick- bamachrn<br>
&gt; <a href="http://bamacharankundu.wordpress.com/" rel="noreferrer" target="_blank">http://bamacharankundu.wordpress.com/</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; CentOS-devel mailing list<br>
&gt; <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>
&gt; <a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
&gt;<br>
<br>
<br>
--<br>
</span><span class="im HOEnZb">Karanbir Singh<br>
+44-207-0999389 | <a href="http://www.karan.org/" rel="noreferrer" target="_blank">http://www.karan.org/</a> | <a href="http://twitter.com/kbsingh" rel="noreferrer" target="_blank">twitter.com/kbsingh</a><br>
GnuPG Key : <a href="http://www.karan.org/publickey.asc" rel="noreferrer" target="_blank">http://www.karan.org/publickey.asc</a><br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
CentOS-devel mailing list<br>
<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/centos-devel" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/centos-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Bamacharan Kundu<br>IRC Nick- bamachrn<br><a href="http://bamacharankundu.wordpress.com/" target="_blank">http://bamacharankundu.wordpress.com/</a><br></div>
</div>