After we migrated container to alpine_java-17 excel export feature fails with the next error:
java.lang.UnsatisfiedLinkError: no fontmanager in system library path: /usr/lib/jvm/java-17-openjdk/lib
In my Dockerfile I installed:
RUN apk add --no-cache fontconfig
RUN apk add --no-cache ttf-dejavu
RUN apk add --no-cache freetype
Here's short version of Dockerfile:
FROM custom_registry/alpine_java-17
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk
# procps to have the binary 'pgrep'
RUN apk update
RUN apk add curl
RUN apk add procps
#here's mu solution to fix the issue
RUN apk add --no-cache fontconfig
RUN apk add --no-cache ttf-dejavu
RUN apk add --no-cache freetype
# install bash
RUN apk add --no-cache bash
ENTRYPOINT [ "/app/bin/run.sh" ]
But it didn't help. Maybe someone knows how to fix the issue? Thanks in advance!
Dockerfile
? What library are you using for your Excel report generation? – EngineeringDockerfile
in order to trying understanding your installation. I honestly can tell, but you may have installed a headless version of the JDK; probably an obvious solution would be using the normal, non headless ,version of the JDK instead, and try again. Please, consider read this related SO question and github issue. I hope it helps. – Engineering