<div dir="auto">I believe in that case if you use a shared volume between containers, plack won't be needed</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 2 de marzo de 2020 20:21,  <<a href="mailto:dcook@prosentient.com.au">dcook@prosentient.com.au</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-AU" link="blue" vlink="purple"><div class="m_-2110562908581047634WordSection1"><p class="MsoNormal">Could you speak more to that one, Kyle?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I was thinking the other day how Varnish could be used to cache responses for static assets, but that would still put load on the Plack server for the initial requests. Maybe not enough to be significant though. Would be interesting to experiment.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">David Cook<u></u><u></u></p><p class="MsoNormal">Systems Librarian<u></u><u></u></p><p class="MsoNormal">Prosentient Systems<u></u><u></u></p><p class="MsoNormal">72/330 Wattle St<u></u><u></u></p><p class="MsoNormal">Ultimo, NSW 2007<u></u><u></u></p><p class="MsoNormal">Australia<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Office: 02 9212 0899<u></u><u></u></p><p class="MsoNormal">Direct: 02 8005 0595<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Kyle Hall <<a href="mailto:kyle.m.hall@gmail.com" target="_blank" rel="noreferrer">kyle.m.hall@gmail.com</a>> <br><b>Sent:</b> Tuesday, 3 March 2020 1:24 AM<br><b>To:</b> David Cook <<a href="mailto:dcook@prosentient.com.au" target="_blank" rel="noreferrer">dcook@prosentient.com.au</a>><br><b>Cc:</b> Julian Maurice <<a href="mailto:julian.maurice@biblibre.com" target="_blank" rel="noreferrer">julian.maurice@biblibre.com</a>>; Agustin Moyano <<a href="mailto:agustinmoyano@theke.io" target="_blank" rel="noreferrer">agustinmoyano@theke.io</a>>; Koha Devel <<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a>><br><b>Subject:</b> Re: [Koha-devel] Minimal docker images for Koha<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">For static assets, you could put something like Varnish in between as well.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><div><div><div><div><div><div><div><div><div><p class="MsoNormal"><span style="font-size:12.0pt">---<u></u><u></u></span></p></div></div><div><p class="MsoNormal"><a href="http://www.kylehall.info" target="_blank" rel="noreferrer">http://www.kylehall.info</a><br>ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank" rel="noreferrer">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank" rel="noreferrer">http://www.meadvillelibrary.org</a> )<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank" rel="noreferrer">http://www.ccfls.org</a> )<u></u><u></u></p></div></div></div></div></div></div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, Mar 1, 2020 at 9:45 PM <<a href="mailto:dcook@prosentient.com.au" target="_blank" rel="noreferrer">dcook@prosentient.com.au</a>> wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal">I'd also note that in production you'd probably want to use a reverse proxy in the same container as Starman for performance reasons, since the reverse proxy will do better than Starman at serving static assets. On a different Perl project, I've used HTTP::Server::PSGI for development, and it does well with the Perl, but really struggles to provide the static assets. (I suppose you could run a reverse proxy in a different container and share files using a mounted volume but I think you'd start getting headaches if you tried to scale that out at all.)<br><br>David Cook<br>Systems Librarian<br>Prosentient Systems<br>72/330 Wattle St<br>Ultimo, NSW 2007<br>Australia<br><br>Office: 02 9212 0899<br>Direct: 02 8005 0595<br><br>-----Original Message-----<br>From: Koha-devel <<a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank" rel="noreferrer">koha-devel-bounces@lists.koha-community.org</a>> On Behalf Of Julian Maurice<br>Sent: Sunday, 1 March 2020 10:12 PM<br>To: Agustin Moyano <<a href="mailto:agustinmoyano@theke.io" target="_blank" rel="noreferrer">agustinmoyano@theke.io</a>>; Koha Devel <<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a>><br>Subject: Re: [Koha-devel] Minimal docker images for Koha<br><br>I believe that the problems we have with Debian buster are mostly related to the versions of Perl modules shipped with debian packages. <br>Since these Dockerfiles install all Perl modules from CPAN in their latest version, I think you will have the same problems with an older version of Debian.<br><br>URL rewrite in PSGI file is handy for development, but that shouldn't be used in production. Indeed, a reverse proxy is still required in production environments.<br><br>Please note that images produced by these Dockerfiles are not intended to be used in production. As I said in my first message, you should expect things to break ;)<br><br>Le 01/03/2020 à 05:19, Agustin Moyano a écrit :<br>> Sorry.. seems I send it only to Julian.. here goes again<br>> <br>> El sáb., 29 de febrero de 2020 19:15, Agustin Moyano <br>> <<a href="mailto:agustinmoyano@theke.io" target="_blank" rel="noreferrer">agustinmoyano@theke.io</a> <mailto:<a href="mailto:agustinmoyano@theke.io" target="_blank" rel="noreferrer">agustinmoyano@theke.io</a>>> escribió:<br>> <br>>     Hi Julian, great work!!<br>> <br>>     I've also been working (interruptedly) for a couple of months on a<br>>     docker version of Koha.<br>> <br>>     I focused on having as soon as possible a fully functional docker<br>>     version of Koha, and didn't worry too much about doing things the<br>>     docker way.. It's comforting to know you weren't tempted by de dark<br>>     side of the force!<br>> <br>>     I thought of having first a production ready docker much like<br>>     koha-testing-docker, and later split services into different<br>>     containers. That's why I really, really loved your implementation of<br>>     plack.psgi. URL rewrite in psgi brings independence day from Apache<br>>     much closer! \o/.<br>> <br>>     Just some thoughts:<br>> <br>>       * Should you base your image on Debian buster? on<br>>         <a href="https://wiki.koha-community.org/wiki/Koha_on_Debian" target="_blank" rel="noreferrer">https://wiki.koha-community.org/wiki/Koha_on_Debian</a> says "Note:<br>>         Debian 10 (Buster) is currently not recommended or supported,<br>>         work is in progress to rectify this situation."<br>>       * Even if there's no need for reverse proxy, I wouldn't discard<br>>         having one on a separate container.. web servers like apache or<br>>         nginx deal much better with attacks than exposing the service on<br>>         it's own (First hand experience with a Java/Tomcat service I<br>>         made once)<br>>         <br>> (<a href="https://security.stackexchange.com/questions/209111/security-benefits" target="_blank" rel="noreferrer">https://security.stackexchange.com/questions/209111/security-benefits</a><br>> -of-reverse-proxying-java-tomcat-webapps-locally)<br>> <br>>     But overall, great job!<br>> <br>>     PS: If you'd like to take a peek of what I've done, here's the repo:<br>>     <a href="https://gitlab.com/thekesolutions/koha-docker" target="_blank" rel="noreferrer">https://gitlab.com/thekesolutions/koha-docker</a><br>> <br><br>--<br>Julian Maurice<br>BibLibre<br>_______________________________________________<br>Koha-devel mailing list<br><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a><br><a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank" rel="noreferrer">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>website : <a href="http://www.koha-community.org/" target="_blank" rel="noreferrer">http://www.koha-community.org/</a> git : <a href="http://git.koha-community.org/" target="_blank" rel="noreferrer">http://git.koha-community.org/</a> bugs : <a href="http://bugs.koha-community.org/" target="_blank" rel="noreferrer">http://bugs.koha-community.org/</a><br><br>_______________________________________________<br>Koha-devel mailing list<br><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a><br><a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank" rel="noreferrer">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>website : <a href="http://www.koha-community.org/" target="_blank" rel="noreferrer">http://www.koha-community.org/</a><br>git : <a href="http://git.koha-community.org/" target="_blank" rel="noreferrer">http://git.koha-community.org/</a><br>bugs : <a href="http://bugs.koha-community.org/" target="_blank" rel="noreferrer">http://bugs.koha-community.org/</a><u></u><u></u></p></blockquote></div></div></div></blockquote></div>