-
Notifications
You must be signed in to change notification settings - Fork 11
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
PDF/CSV export #115
Comments
Hi, Does Chromium work as well for you? |
Does not reduce the image size. |
Now another issue is the CVS export runs out of memory. |
Problem solved by increasing the memory_limit to 256M in docker container php config. |
Pro: the module starts the browser by itself, so it has to be in the same image Cons:
FROM icinga/icingaweb2
USER root
RUN ["bash", "-exo", "pipefail", "-c", "export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get install --no-install-{recommends,suggests} -y chromium; apt-get clean; rm -vrf /var/lib/apt/lists/*"]
USER www-data |
I am having issues with PDF export on icingaweb2 pages (does not work out of the box).
Enabling the PDFexport module google-chrome is needed in the docker image. Can this be added as default to the Dockerfile?
Dokerfile diff
`-RUN ["bash", "-exo", "pipefail", "-c", "export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get install --no-install-{recommends,suggests} -y apache2 ca-certificates libapache2-mod-php7.4 libldap-common locales-all php-{imagick,redis} php7.4-{bcmath,bz2,common,curl,dba,enchant,gd,gmp,imap,interbase,intl,json,ldap,mbstring,mysql,odbc,opcache,pgsql,pspell,readline,snmp,soap,sqlite3,sybase,tidy,xml,xmlrpc,xsl,zip}; apt-get clean; rm -vrf /var/lib/apt/lists/*"]
+RUN ["bash", "-exo", "pipefail", "-c", "export DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get install --no-install-{recommends,suggests} -y wget apache2 ca-certificates libapache2-mod-php7.4 libldap-common locales-all php-{imagick,redis} php7.4-{bcmath,bz2,common,curl,dba,enchant,gd,gmp,imap,interbase,intl,json,ldap,mbstring,mysql,odbc,opcache,pgsql,pspell,readline,snmp,soap,sqlite3,sybase,tidy,xml,xmlrpc,xsl,zip}; wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; apt-get install --no-install-recommends -y ./google-chrome-stable_current_amd64.deb; rm google-chrome-stable_current_amd64.deb; apt-get clean; rm -vrf /var/lib/apt/lists/*"]`
The downside is that the image size jumps from around 700MB to 1.1GB
The text was updated successfully, but these errors were encountered: