mhf-ir commented on pull request #2:
URL: https://github.com/apache/tika-docker/pull/2#issuecomment-856426799


   seems `$jar` variable has problem, default is `tika-server`
   https://github.com/apache/tika-docker/blob/master/docker-tool.sh#L61
   It's not my modification. I just resolve that conflict like master.
   
   ```
   gpg: Total number processed: 7
   gpg:               imported: 7
   gpg: no ultimately trusted keys found
   --2021-06-08 04:16:59--  
https://www.apache.org/dyn/closer.cgi/tika/tika-server-1.26.jar?filename=tika/tika-server-1.26.jar&action=download
   Resolving www.apache.org (www.apache.org)... 207.244.88.140, 95.216.26.30, 
2a01:4f9:2a:1a61::2
   Connecting to www.apache.org (www.apache.org)|207.244.88.140|:443... 
connected.
   HTTP request sent, awaiting response... 302 Found
   Location: https://archive.apache.org/dist/tika/tika-server-1.26.jar 
[following]
   --2021-06-08 04:17:01--  
https://archive.apache.org/dist/tika/tika-server-1.26.jar
   Resolving archive.apache.org (archive.apache.org)... 138.201.131.134, 
2a01:4f8:172:2ec5::2
   Connecting to archive.apache.org 
(archive.apache.org)|138.201.131.134|:443... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 79903002 (76M) [application/java-archive]
   Saving to: '/tika-server-1.26.jar'
   
        0K .......... .......... .......... .......... ..........  0%  171K 
7m36s
       50K .......... .......... .......... .......... ..........  0%  283K 6m5s
      100K .......... .......... .......... .......... ..........  0%  483K 
4m57s
      150K .......... .......... .......... .......... ..........  0%  496K 
4m22s
   ```
   
   try this:
   ```
   ./docker-tool.sh build 1.26 tika-server tesseract-ocr-fra tesseract-ocr-fas
   ```
   
   ```
    ---> 594d05b32156
   Step 22/26 : COPY --from=fetch_tika /${TIKA_JAR_NAME}-${TIKA_VERSION}.jar 
/${TIKA_JAR_NAME}-${TIKA_VERSION}.jar
    ---> 74da0f6e2136
   Step 23/26 : USER $UID_GID
    ---> Running in 27cd65503cc4
   Removing intermediate container 27cd65503cc4
    ---> 3087a7429f40
   Step 24/26 : EXPOSE 9998
    ---> Running in 85d927ba4187
   Removing intermediate container 85d927ba4187
    ---> bc6b467c7eed
   Step 25/26 : ENTRYPOINT [ "/bin/sh", "-c", "exec java -jar 
/${TIKA_JAR_NAME}-${TIKA_VERSION}.jar -h 0.0.0.0 $0 $@"]
    ---> Running in 22f85e5b9e83
   Removing intermediate container 22f85e5b9e83
    ---> 16c47b78d7e9
   Step 26/26 : LABEL maintainer="Apache Tika Developers [email protected]"
    ---> Running in d670b34497d3
   Removing intermediate container d670b34497d3
    ---> 6f04502585ad
   Successfully built 6f04502585ad
   Successfully tagged apache/tika:1.26-full
   ```
   
   ```
   sweb@sweb-laptop:/sweb/tmp/tika-d-mhf$ TZ=UTC date && docker images | grep 
tika
   Tue 08 Jun 2021 04:20:15 AM UTC
   apache/tika                             1.26-full         6f04502585ad   2 
minutes ago   690MB
   apache/tika                             1.26              65ea0073c1e2   7 
minutes ago   408MB
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to