From a33df4b68a35b691929a2f7b42095ecbce04c4b0 Mon Sep 17 00:00:00 2001 From: Milan Mertens Date: Wed, 12 Feb 2025 12:35:52 +0100 Subject: [PATCH] ci(dockerimage): fix tika install --- ci/dockerimage/base.Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/dockerimage/base.Dockerfile b/ci/dockerimage/base.Dockerfile index 7688d439ee..a8a9341c4b 100644 --- a/ci/dockerimage/base.Dockerfile +++ b/ci/dockerimage/base.Dockerfile @@ -61,17 +61,18 @@ ARG ALPINE_PHP_PACKAGE=php7 ARG TINE20ROOT=/usr/share ENV TINE20ROOT=$TINE20ROOT -# install latest version of tika 2.9.*. (Expects apache to only serve on version of tika 2.9.*) -RUN tika_version=$(curl https://dlcdn.apache.org/tika/ | grep -oh '' | cut -d '"' -f 2 | cut -d / -f 1) \ - && curl https://dlcdn.apache.org/tika/${tika_version}/tika-app-${tika_version}.jar --output /usr/local/bin/tika.jar \ - && echo $(curl https://dlcdn.apache.org/tika/${tika_version}/tika-app-${tika_version}.jar.sha512) /usr/local/bin/tika.jar | sha512sum -c - # todo check if copy or add creates folder RUN mkdir /usr/local/lib/container COPY --from=cache-invalidator /cachehash /usr/local/lib/container/ RUN apk add --update --no-cache supervisor curl bash ytnef openjdk8-jre gettext openssl netcat-openbsd mysql-client gomplate + +# install latest version of tika 2.9.*. (Expects apache to only serve on version of tika 2.9.*) +RUN tika_version=$(curl https://dlcdn.apache.org/tika/ | grep -oh '' | cut -d '"' -f 2 | cut -d / -f 1) \ + && curl https://dlcdn.apache.org/tika/${tika_version}/tika-app-${tika_version}.jar --output /usr/local/bin/tika.jar \ + && echo $(curl https://dlcdn.apache.org/tika/${tika_version}/tika-app-${tika_version}.jar.sha512) /usr/local/bin/tika.jar | sha512sum -c + RUN apk add --no-cache \ ${ALPINE_PHP_PACKAGE} \ ${ALPINE_PHP_PACKAGE}-bcmath \