Contributors mailing list archives

contributors@odoo-community.org

Re: Run wkhtmltopdf under docker

by
Benoît Vézina
- 12/04/2017 13:34:16

If I understand you, you just want to dockerize wkhtmlpdf (a bit like py3o fusion https://hub.docker.com/r/xcgd/py3o.fusion/)

There is allready a wkhtmlpdf docker on docker hub (https://hub.docker.com/r/openlabs/docker-wkhtmltopdf/ or better https://hub.docker.com/r/openlabs/docker-wkhtmltopdf-aas/)

Then wkhtmltopdf can be call from curl or json

Dont know if it is easy to switch this on place of the original wkhtmltopdf

Le 2017-04-12 à 09:22, Jordi Ballester Alomar a écrit :
<blockquote cite="mid:CALVkZEe5BBkteM6KJyVC+R4csc=J5kEE1PZdAOYqj1RMEj_pqw@mail.gmail.com" type="cite">
Thanks. The idea is not (yet) to completely dockerize odoo. 

Instead, we want to independize the serivce provided by wkhtmltopdf 0.12.1 from the platform in which odoo runs.

As we all know, 0.12.1 is very old, but it is the only one that works for odoo.

I was thinking that you should be able to create a bash with the name 'wkhtmltopdf' and put it in /usr/local/bin.

When odoo calls 'wkhtmltopdf' it will invoke the bash script, which will call the docker to provide the service.


On Apr 12, 2017 2:23 PM, "Benoît Vézina" <benoit@vezina.biz> wrote:
Using docker all time for Odoo, did not get any issue just be sure to 
set report.url to http://127.0.0.1:8069

are you using the official Odoo docker or did you make you own.

Le 2017-04-12 à 03:53, Jordi Ballester Alomar a écrit :
> Hi! Has anyone attempted to run wkhtmltopdf under a docker container 
> (separate from odoo).
>
> We are struggling to install normal.wkhtmltopdf 0.12.1 in debian 
> stretch, and docker seems so much easier in principle.
>
> _______________________________________________
> Mailing-List: https://odoo-community.org/groups/contributors-15
> Post to: mailto:contributors@odoo-community.org
> Unsubscribe: https://odoo-community.org/groups?unsubscribe
>

_______________________________________________ Mailing-List: https://odoo-community.org/groups/contributors-15 Post to: mailto:contributors@odoo-community.org Unsubscribe: https://odoo-community.org/groups?unsubscribe