From 9b106210fa8be284b47ab5b904dcf83b0f175308 Mon Sep 17 00:00:00 2001 From: John Patrick Date: Wed, 24 Feb 2016 12:33:56 +0000 Subject: [PATCH] TIKA-1868 tika-server split into clean and standalone jar --- pom.xml | 1 + tika-server/Dockerfile | 10 +++++----- tika-server/pom.xml | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 85e866f8db9..f0a06fec916 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,7 @@ + diff --git a/tika-server/Dockerfile b/tika-server/Dockerfile index f197d142ebc..829b265f8e9 100644 --- a/tika-server/Dockerfile +++ b/tika-server/Dockerfile @@ -17,21 +17,21 @@ FROM ubuntu:latest MAINTAINER Apache Tika Team ENV TIKA_VERSION 1.7 -ENV TIKA_SERVER_URL https://www.apache.org/dist/tika/tika-server-$TIKA_VERSION.jar +ENV TIKA_SERVER_URL https://www.apache.org/dist/tika/tika-server-$TIKA_VERSION-standalone.jar RUN apt-get update \ && apt-get install openjdk-7-jre-headless curl gdal-bin tesseract-ocr \ tesseract-ocr-eng tesseract-ocr-ita tesseract-ocr-fra tesseract-ocr-spa tesseract-ocr-deu -y \ && curl -sSL https://people.apache.org/keys/group/tika.asc -o /tmp/tika.asc \ && gpg --import /tmp/tika.asc \ - && curl -sSL "$TIKA_SERVER_URL.asc" -o /tmp/tika-server-${TIKA_VERSION}.jar.asc \ + && curl -sSL "$TIKA_SERVER_URL.asc" -o /tmp/tika-server-${TIKA_VERSION}-standalone.jar.asc \ && NEAREST_TIKA_SERVER_URL=$(curl -sSL http://www.apache.org/dyn/closer.cgi/${TIKA_SERVER_URL#https://www.apache.org/dist/}\?asjson\=1 \ | awk '/"path_info": / { pi=$2; }; /"preferred":/ { pref=$2; }; END { print pref " " pi; };' \ | sed -r -e 's/^"//; s/",$//; s/" "//') \ && echo "Nearest mirror: $NEAREST_TIKA_SERVER_URL" \ - && curl -sSL "$NEAREST_TIKA_SERVER_URL" -o /tika-server-${TIKA_VERSION}.jar \ - && gpg --verify /tmp/tika-server-${TIKA_VERSION}.jar.asc /tika-server-${TIKA_VERSION}.jar \ + && curl -sSL "$NEAREST_TIKA_SERVER_URL" -o /tika-server-${TIKA_VERSION}-standalone.jar \ + && gpg --verify /tmp/tika-server-${TIKA_VERSION}-standalone.jar.asc /tika-server-${TIKA_VERSION}-standalone.jar \ && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* EXPOSE 9998 -ENTRYPOINT java -jar /tika-server-${TIKA_VERSION}.jar -h 0.0.0.0 +ENTRYPOINT java -jar /tika-server-${TIKA_VERSION}-standalone.jar -h 0.0.0.0 diff --git a/tika-server/pom.xml b/tika-server/pom.xml index 95d46157b23..50718518332 100644 --- a/tika-server/pom.xml +++ b/tika-server/pom.xml @@ -163,6 +163,12 @@ false + + true + + + standalone + *:*