ci: activate Tika's thumbnail preset wherever Tika runs

PUT /unpack/preset/thumbnail answers 404 unless the thumbnail catalog preset is
active, and the thumbnailer then finds no thumbnail for any document.
TIKA_PRESETS=thumbnail activates it and needs Tika 4.2.0, so the acceptance
stack and the example deployment follow the snapshot image until the release is
out. The deployment also reads the shared OC_TIKA_URL so the thumbnailer uses
the Tika that is already there.
This commit is contained in:
Dominik Schmidt committed 2026-11-27 16:38:01 +01:00
1 parent 9dbe0b7956
commit 299586bf7d
3 files changed
+12 -3

No files matched your search

+4
View File
@@ -3385,6 +3385,10 @@ def tikaService():
# tika 4 discovers its plugins relative to the image working directory,
# the workspace default would leave the pipes fetchers empty
"directory": "/opt/tika-server",
"environment": {
# the thumbnail preset ships inert, this activates it
"TIKA_PRESETS": "thumbnail",
},
"detach": True,
}, {
"name": "wait-for-tika-service",
+5 -2
View File
@@ -1,8 +1,11 @@
---
services:
tika:
image: ${TIKA_IMAGE:-apache/tika:latest-full}
image: ${TIKA_IMAGE:-apache/tika:4.2.0-SNAPSHOT-full}
# release notes: https://tika.apache.org
environment:
# the thumbnail preset ships inert, this activates it, Tika 4.2.0 or newer
TIKA_PRESETS: thumbnail
networks:
opencloud-net:
restart: always
@@ -13,5 +16,5 @@ services:
environment:
# fulltext search
SEARCH_EXTRACTOR_TYPE: tika
SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998
OC_TIKA_URL: http://tika:9998
FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true"
+3 -1
View File
@@ -5,4 +5,6 @@ services:
- tika
command: tika:9998
tika:
image: apache/tika:4.1.0-full
image: apache/tika:4.2.0-SNAPSHOT-full
environment:
TIKA_PRESETS: thumbnail