<div dir="ltr"><div>Agreed! I think a task queue would be a huge benefit to Koha, we have so many long running batch operations.</div><div><br></div><div>Kyle</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 Tue, Feb 18, 2020 at 7:21 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">Funny I was just looking at <a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15032" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kylehall.info</a><br>
> ByWater Solutions ( <a href="http://bywatersolutions.com" rel="noreferrer" target="_blank">http://bywatersolutions.com</a> ) Meadville Public <br>
> Library ( <a href="http://www.meadvillelibrary.org" rel="noreferrer" target="_blank">http://www.meadvillelibrary.org</a> ) Crawford County Federated <br>
> Library System ( <a href="http://www.ccfls.org" rel="noreferrer" 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" rel="noreferrer" target="_blank">https://github.com/bitnami/minideb</a> ). I<br>
>     would also suggest using <a href="http://quay.io" rel="noreferrer" target="_blank">quay.io</a> <<a href="http://quay.io" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kylehall.info</a><br>
>     ByWater Solutions ( <a href="http://bywatersolutions.com" rel="noreferrer" target="_blank">http://bywatersolutions.com</a> )<br>
>     Meadville Public Library ( <a href="http://www.meadvillelibrary.org" rel="noreferrer" target="_blank">http://www.meadvillelibrary.org</a> )<br>
>     Crawford County Federated Library System ( <a href="http://www.ccfls.org" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">tmpl_process3.pl</a><br>
>         <<a href="http://tmpl_process3.pl" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
>         website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
>         git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
>         bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" 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" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a> git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a> bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
<br>
</blockquote></div>