Using jsreport.Local in Docker using RedHat UBI - extra dependencies?



  • Hi,

    I am currently using jsreport.Local and the jsreport.Binary.Linux in my .NET WebAPI which I deploy on Docker.

    We currently use RedHat UBI as the base image which has asp installed for running the app.

    I can see from the documentation here(https://jsreport.net/learn/dotnet-local#Docker) that I need to install these extra dependencies - but that appears to be for Ubuntu. I found this page https://jsreport.net/learn/red-hat too which installs Chrome? I always assumed the binary contained Chrome - is it still necessary to install it?

    Any guidance on what extra dependencies I should install to make jsreport.Local work would be great. Please let me know if I can provide extra details.

    At the moment, when I attempted to generate the PDF I got errors about missing dependencies so I can assume this is the reason.

    Thanks!



  • I apologize for the late answer.

    The jsreport.Linux.Binary includes the chrome binary but you typically need some extra dependencies installed on the running system.

    The list of required dependencies for a particular Linux distro can be found here
    https://pptr.dev/troubleshooting#chrome-doesnt-launch-on-linux

    In the past, the list was changing and often incomplete. Therefore our red-hat install guide rather installs chrome from rpm package, which assures the required dependencies are installed along with the chrome binary. You should be good to for jsreport.Linux.Binary with the mentioned guide.

    Note I typically recommend running jsreport standalone. For example in an extra container with docker compose. In this case you can simply use our official images.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.