[ 
https://issues.apache.org/jira/browse/TIKA-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14278446#comment-14278446
 ] 

Konstantin Gribov commented on TIKA-1518:
-----------------------------------------

To pull latest Tika you can use snippet like mine:

{noformat}
# ...

# see https://www.apache.org/dist/tomcat/tomcat-8/KEYS
RUN gpg --keyserver pgp.mit.edu --recv-keys \
        05AB33110949707C93A279E3D3EFE6B686867BA6 \
        F7DA48BB64BCB84ECBA7EE6935CD23C10D498E23
# keylist (stripped for jira)

ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.0.15
ENV TOMCAT_TGZ_URL 
https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz

RUN NEAREST_TOMCAT_TGZ_URL=$(curl -sSL 
http://www.apache.org/dyn/closer.cgi/${TOMCAT_TGZ_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_TOMCAT_TGZ_URL" \
        && curl -sSL "$NEAREST_TOMCAT_TGZ_URL" -o tomcat.tar.gz \
        && curl -sSL "$TOMCAT_TGZ_URL.asc" -o tomcat.tar.gz.asc \
        && gpg --verify tomcat.tar.gz.asc \
        && tar -xvf tomcat.tar.gz --strip-components=1
{noformat}
Full Dockerfile can be viewed on github 
(https://github.com/grossws/docker-comp-tomcat8/blob/master/Dockerfile)

If you want, I can make docker image and automated build for it.

> Docker with Tika Server
> -----------------------
>
>                 Key: TIKA-1518
>                 URL: https://issues.apache.org/jira/browse/TIKA-1518
>             Project: Tika
>          Issue Type: New Feature
>            Reporter: Paul Ramirez
>             Fix For: 1.8
>
>
> This version should be able to demonstrate as many of Apache Tika's 
> capabilities as possible. For instance with GDAL, Tesseract, and FFmpeg to 
> show parsers which require installation of other dependencies. In addition, 
> this should help move TIKA-1301 forward and should leverage the suggestion 
> made by [~lewismc] of a script which can pull down the latest version of 
> Apache Tika.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to