From 28fc4e10a0d770690320b9a25ecb3cd5b2ec85f2 Mon Sep 17 00:00:00 2001 From: Timo Rantalaiho Date: Mon, 18 Mar 2019 14:01:55 +0200 Subject: [PATCH] VTKU-28 : Add missing font library This should fix the error with e.g. Apache POI that we use for handling excel sheets. https://github.com/AdoptOpenJDK/openjdk-docker/issues/75 --- Dockerfile | 2 ++ install.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0922d4c..ec3d5ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM adoptopenjdk/openjdk11:alpine-slim +ENV LD_LIBRARY_PATH /usr/lib + COPY files/dump_threads.sh /root/bin/ COPY files/run.sh /tmp/scripts/run diff --git a/install.sh b/install.sh index 5fe5772..ccf75dd 100755 --- a/install.sh +++ b/install.sh @@ -17,10 +17,16 @@ apk --no-cache add \ py-jinja2 \ py-pip \ py2-yaml \ + ttf-dejavu \ unzip \ wget \ zip +echo "Kludging font libraries in place" +ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \ + ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \ + ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1 + echo "Installing tools for downloading environment configuration during service run script" pip install --upgrade pip pip install \