Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generating PDF reports #1

Closed
jamiefuller96 opened this issue Sep 20, 2019 · 1 comment
Closed

Error generating PDF reports #1

jamiefuller96 opened this issue Sep 20, 2019 · 1 comment

Comments

@jamiefuller96
Copy link

jamiefuller96 commented Sep 20, 2019

The public available image at hub.docker.com/testrail/apache:latest has some additional config that isn't present in the testrail-apache dockerFile in this repo.

When building the image from the dockerFile, the task.php fails to generate PDF reports with this error:

/var/www/testrail/app/helpers/../../bin/phantomjs_x86_64: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

This is fixed by adding the below to the dockerFile:

ENV OPENSSL_CONF="/etc/ssl/"

and installing libfontconfig1

RUN \ apt-get update && \ apt-get install -y --no-install-recommends curl zip unzip wget iputils-ping mariadb-client && \ apt-get install -y --no-install-recommends zlib1g-dev libcurl4-gnutls-dev libldap2-dev zlib1g-dev libxml2-dev libfontconfig1 && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*

It then works as expected.

Both changes are already in the prebuilt image on dockerhub:

https://hub.docker.com/layers/testrail/apache/latest/images/sha256-58c49e6ed5ce94d15f2f351ca0e8794ff37cf7031647a8ad167836b60d0a0dfe

@cbreit
Copy link
Contributor

cbreit commented Nov 18, 2019

Thx for the hint.
Is fixed.
--> See 1 and 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants