<div dir="ltr"><div>I could be mistaken as well. I was under the impression that Plack loaded the plugin code into itself when the plugin was first run. I'm basing this on the fact that it used to be that updating a plugin did not reflect the updated info in the plugins table in the admin section for plugins. That particular issue has been resolved.</div><div><br></div><div>I suppose the easiest way to test would be to load a plugin into a plack enabled Koha instance, make a minor change to the plugin's perl code ( like a warn statement or something ) and see if the change shows itself without restarting plack. If it doesn't, then plugins are probably running under plack.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div style="font-size:small">---<br></div></div><div><a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">http://www.ccfls.org</a> )<br></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 23, 2020 at 6:01 PM <<a href="mailto:dcook@prosentient.com.au">dcook@prosentient.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-AU"><div class="gmail-m_-7991138702082159215WordSection1"><p class="MsoNormal">It could just be that I misunderstand how the plugins work with Plack, but when I use Koha via CGI, this is the path that is being used: /plugin/Koha/Plugin/EDS/opac/<a href="http://eds-search.pl?q=Search?query-1=AND,:%7Btest%7D&default=1" target="_blank">eds-search.pl?q=Search?query-1=AND,:{test}&default=1</a>. I don’t think that would work using <a href="https://github.com/jajm/koha-docker/blob/master/master/app.psgi" target="_blank">https://github.com/jajm/koha-docker/blob/master/master/app.psgi</a>? I think just adding another mount would do the trick though?<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">kyle.m.hall@gmail.com</a>> <br><b>Sent:</b> Friday, 21 February 2020 11:27 PM<br><b>To:</b> David Cook <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>><br><b>Cc:</b> Julian Maurice <<a href="mailto:julian.maurice@biblibre.com" target="_blank">julian.maurice@biblibre.com</a>>; koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">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">Plugin code is loaded into Plack processes. Does the EDS plugin contain cgi scripts that wouldn't run under plack?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Getting all scripts to run under plack is definitely a goal we should have, but a short term kludge would be to run two containers, one plack and one cgi, and to direct traffic from a proxy to the correct container based on the url. Not elegant, but functional.<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><p class="MsoNormal"><span style="font-size:12pt">---<u></u><u></u></span></p></div></div><div><p class="MsoNormal"><a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">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><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Thu, Feb 20, 2020 at 7:30 PM <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>> wrote:<u></u><u></u></p></div><blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">Actually, now that I think about it, I assume an Apache-less Koha would also lose support for web-facing OPAC plugins (like the EBSCO EDS plugin)?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><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></div><p class="MsoNormal"> <u></u><u></u></p><div><div style="border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm;border-color:currentcolor"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Koha-devel <<a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">koha-devel-bounces@lists.koha-community.org</a>> <b>On Behalf Of </b><a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a><br><b>Sent:</b> Thursday, 20 February 2020 3:00 PM<br><b>To:</b> 'Kyle Hall' <<a href="mailto:kyle.m.hall@gmail.com" target="_blank">kyle.m.hall@gmail.com</a>><br><b>Cc:</b> 'koha-devel' <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br><b>Subject:</b> Re: [Koha-devel] Minimal docker images for Koha</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Exactly! I would love to see a task queue based record importer. (I keep thinking about a Koha plugin to provide a web ui for scheduling OAI-PMH harvesting, and then third-party applications that can consume from the task queue, stage the records… probably via the REST API… and then enqueue tasks to a high performance record importer worker…)<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Are you going to the Hackfest in Marseille? (I wanted to go this year but life is just too hectic this year, although planning to go to Kohacon in October.) A task queue could be a great Hackfest project…<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">kyle.m.hall@gmail.com</a>> <br><b>Sent:</b> Thursday, 20 February 2020 12:04 AM<br><b>To:</b> David Cook <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>><br><b>Cc:</b> Julian Maurice <<a href="mailto:julian.maurice@biblibre.com" target="_blank">julian.maurice@biblibre.com</a>>; koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br><b>Subject:</b> Re: [Koha-devel] Minimal docker images for Koha</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Agreed! I think a task queue would be a huge benefit to Koha, we have so many long running batch operations.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Kyle<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><p class="MsoNormal"><span style="font-size:12pt">---</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">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><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">On Tue, Feb 18, 2020 at 7:21 PM <<a href="mailto:dcook@prosentient.com.au" target="_blank">dcook@prosentient.com.au</a>> wrote:<u></u><u></u></p></div><blockquote style="border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt;border-color:currentcolor currentcolor currentcolor rgb(204,204,204)"><p class="MsoNormal" style="margin-bottom:12pt">Funny I was just looking at <a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15032" target="_blank">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15032</a>. <br><br>One of these days we should push forward more on queues: <a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22417" target="_blank">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22417</a>. <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">koha-devel-bounces@lists.koha-community.org</a>> On Behalf Of Julian Maurice<br>Sent: Tuesday, 18 February 2020 11:11 PM<br>To: Kyle Hall <<a href="mailto:kyle.m.hall@gmail.com" target="_blank">kyle.m.hall@gmail.com</a>><br>Cc: koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br>Subject: Re: [Koha-devel] Minimal docker images for Koha<br><br>Are you talking about these files<br><a href="https://github.com/Koha-Community/Koha/blob/master/debian/templates/apache-shared-intranet-plack.conf#L14-L21" target="_blank">https://github.com/Koha-Community/Koha/blob/master/debian/templates/apache-shared-intranet-plack.conf#L14-L21</a><br>?<br><br>I did nothing specific, so they are probably broken :)<br><br>Le 18/02/2020 à 12:45, Kyle Hall a écrit :<br>> One other question, how does this handle scripts that Koha <br>> specifically does not execute using plack?<br>> <br>> Kyle<br>> <br>> ---<br>> <a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>> ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> ) Meadville Public <br>> Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> ) Crawford County Federated <br>> Library System ( <a href="http://www.ccfls.org" target="_blank">http://www.ccfls.org</a> )<br>> <br>> <br>> On Tue, Feb 18, 2020 at 6:43 AM Kyle Hall <<a href="mailto:kyle.m.hall@gmail.com" target="_blank">kyle.m.hall@gmail.com</a> <br>> <mailto:<a href="mailto:kyle.m.hall@gmail.com" target="_blank">kyle.m.hall@gmail.com</a>>> wrote:<br>> <br>>     This is fantastic Julian! The only thing I can contribute that<br>>     hasn't already been said by you or David is to suggest taking a look<br>>     at MiniDeb as a base image ( <a href="https://github.com/bitnami/minideb" target="_blank">https://github.com/bitnami/minideb</a> ). I<br>>     would also suggest using <a href="http://quay.io" target="_blank">quay.io</a> <<a href="http://quay.io" target="_blank">http://quay.io</a>> to build and host<br>>     your Docker images, as it has built in security scanning. I prefer<br>>     minimal install images not for size reduction ( though it is nice ),<br>>     but for the smaller attack surface they provide. Fewer things<br>>     installed means fewer exploits available!<br>> <br>>     Kyle<br>> <br>>     ---<br>>     <a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>>     ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>>     Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>>     Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">http://www.ccfls.org</a> )<br>> <br>> <br>>     On Mon, Feb 17, 2020 at 12:59 PM Julian Maurice<br>>     <<a href="mailto:julian.maurice@biblibre.com" target="_blank">julian.maurice@biblibre.com</a> <mailto:<a href="mailto:julian.maurice@biblibre.com" target="_blank">julian.maurice@biblibre.com</a>>><br>>     wrote:<br>> <br>>         Hi all,<br>> <br>>         I've been playing with docker lately, and I tried to build a<br>>         minimal<br>>         docker image for Koha. Here are the results.<br>> <br>>         My goals were:<br>>         * Install only required "things" to get Koha up and running, and<br>>         nothing<br>>         else (no testing or dev tools),<br>>         * No external dependencies except CPAN<br>>         * Follow Docker best practices as much as possible<br>> <br>>         The resulting images are here:<br>>         <a href="https://hub.docker.com/repository/docker/julianmaurice/koha" target="_blank">https://hub.docker.com/repository/docker/julianmaurice/koha</a><br>> <br>>         and the Dockerfiles are here:<br>>         <a href="https://github.com/jajm/koha-docker" target="_blank">https://github.com/jajm/koha-docker</a><br>> <br>>         A few things worth mentioning:<br>> <br>>         * I tried to build the smallest image possible by using alpine<br>>         or perl<br>>         slim images at first but it was not that great, because the perl<br>>         version<br>>         shipped with those images is missing some libs, which cause<br>>         MARC::Charset to build a database of several hundreds MBs (which<br>>         is only<br>>         5MBs with a standard perl version). So I chose a more standard<br>>         image<br>>         (debian:buster) as base.<br>> <br>>         * Koha doesn't work well when running with a perl version<br>>         different than<br>>         the system perl installed in /usr/bin/perl. For example, the<br>>         updatedatabase doesn't work when called from the web installer.<br>>         This is<br>>         because Perl scripts are called directly as executable files, and<br>>         shebangs contain '/usr/bin/perl'. Same problem from<br>>         misc/translator/translate which calls <a href="http://tmpl_process3.pl" target="_blank">tmpl_process3.pl</a><br>>         <<a href="http://tmpl_process3.pl" target="_blank">http://tmpl_process3.pl</a>>.<br>> <br>>         * I tried to make the Koha installation as self-contained as<br>>         possible.<br>>         Almost everything is installed as a non-root user in /home/koha,<br>>         including Perl dependencies.<br>> <br>>         * It doesn't need a reverse proxy such as apache or nginx. The<br>>         necessary<br>>         URL rewriting is handled in PSGI file. The container expose two<br>>         ports,<br>>         one for intranet, the other one for OPAC.<br>> <br>>         * Each Perl dependency is installed in its latest version, so<br>>         expect<br>>         things to break. I can only confirm that the webinstaller, basic<br>>         cataloguing and search/indexation work. I did not test anything<br>>         else.<br>> <br>>         * There are docker-compose.yml files in the github repository to<br>>         get<br>>         Koha running quickly with mariadb, memcached and elasticsearch.<br>> <br>>         * Zebra is not installed<br>> <br>>         * Images weigh ~1.15GB uncompressed (koha sources included)<br>> <br>>         If you made it this far, thanks for reading :)<br>>         And if you want to use these docker images, you should start by<br>>         reading<br>>         <a href="https://github.com/jajm/koha-docker/blob/master/README.md" target="_blank">https://github.com/jajm/koha-docker/blob/master/README.md</a><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">Koha-devel@lists.koha-community.org</a><br>>         <mailto:<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a>><br>>         <a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>>         website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>>         git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>>         bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</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">Koha-devel@lists.koha-community.org</a><br><a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a> git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a> bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><u></u><u></u></p></blockquote></div></div></div></blockquote></div></div></div></blockquote></div>