<div dir="ltr"><div><div>The plan is to package up each Sailfish target into a Docker image to be used in a CI system.</div></div><div>For my purposes, Docker is a easy-to-use chroot that's also easy to share and deploy as compared to a virtual machine with a toolchain in sb2.<br></div><div><div><br></div><div><div>I do know that sb2 is more than just a chroot with bind mounts, but thats all I really need: a pre-populated chroot with bind mounts. Docker fits that bill quite nicely.</div></div><div><br></div><div>No, I don't want multiple targets in the same image.<br></div></div><div>No, I don't need the management of multiple build targets within the same Docker image.<br></div><div>I don't want any of the other sb2 features: I dont need Xephyr, I don't need to automagically run the compiled binary under qemu, etc.</div><div><br></div><div>Necessity is the mother of this re-invention.<br></div><div>Can you help?</div><div><br></div><div>Thanks,</div><div>-Yuvraaj</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 30, 2017 at 2:23 PM, Tone Kastlunger <span dir="ltr"><<a href="mailto:users.giulietta@gmail.com" target="_blank">users.giulietta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I have personally nothing against docker.<br></div>I think however what you are trying to do is a bit unusual, to say the least.<br></div><div>Intending to use (at least as I understood it) docker as a substitute for SB2 is "wrong" (if you pass me the word).<br></div>sb2 is more than "just" a virtualization layer bind-mounting directories. It manages build targets, for one, which docker does not know about,<br></div><div>and never will. Yes, of course you can have a single docker image for a single build target, with all the replica which comes with it;<br>or you can have one docker image with multiple toolchains / target envs; but then you have rolled your own sb2.<br><br></div><div>I cant but recall the words : those who do not understand Unix, are doomed to reinvent it, poorly.<br><br></div><div>Best,<br></div><div>tortoisedoc<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 22, 2017 at 10:09 AM, Yuvraaj Kelkar <span dir="ltr"><<a href="mailto:yuvraaj@gmail.com" target="_blank">yuvraaj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I want to create a Docker image for Sailfish development.<div>I know it is possible to create a Docker image with sb2 in it; I've done that for other sb2 toolchains - Maemo and Harmattan.</div><div>However, those images can only run as privileged Docker containers because of sb2 bind mounts (I think).</div><div><br></div><div>I'd like to avoid being forced to run privileged Docker containers.<br></div><div>Also, running sb2 inside a Docker container seems like inception.</div><div><br></div><div>If it is possible to install the Sailfish toolchain without sb2, it should be possible to capture that into a non-privileged Docker image. (I hope)</div><div><br></div><div>The documentation for anything related to scratchbox is either hard to google or has broken links to <a href="http://maemo.org" target="_blank">maemo.org</a> or is just non-existant.</div><div><br></div><div>As to why Docker and not sb2: "Why not?" and "Better documentation"</div><div><br></div><div>Thanks,</div><div>-Yuvraaj</div></div><div class="m_-7463741777317984994HOEnZb"><div class="m_-7463741777317984994h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 21, 2017 at 11:56 PM, Tone Kastlunger <span dir="ltr"><<a href="mailto:users.giulietta@gmail.com" target="_blank">users.giulietta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Out of curiosity, what's blocking you from using scratchbox?<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-7463741777317984994m_-8383150568325258688h5">On Fri, Dec 22, 2017 at 7:53 AM, Yuvraaj Kelkar <span dir="ltr"><<a href="mailto:yuvraaj@gmail.com" target="_blank">yuvraaj@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-7463741777317984994m_-8383150568325258688h5">Ha!<br>
Any other ideas?<br>
<br>
Thanks,<br>
-Yuvraaj<span class="m_-7463741777317984994m_-8383150568325258688m_1375257333596813211im m_-7463741777317984994m_-8383150568325258688m_1375257333596813211HOEnZb"><br>
<br>
On 12/21/17 8:08 PM, Juice wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yuvraaj Kelkar kirjoitti torstai 21. joulukuuta 2017:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Is it possible to compile for sailfish without using scratchbox2?<br>
<br>
Thanks,<br>
-Yuvraaj<br>
<br>
</blockquote>
Sure, just compile in the device itself... :)<br>
<br>
   - juice -<br>
<br>
<br>
</blockquote>
<br></span></div></div><span><div class="m_-7463741777317984994m_-8383150568325258688m_1375257333596813211HOEnZb"><div class="m_-7463741777317984994m_-8383150568325258688m_1375257333596813211h5">
______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfi<wbr>shos.org</a></div></div></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfi<wbr>shos.org</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfi<wbr>shos.org</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>