mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 22:46:09 -05:00
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:
1 parent
9dbe0b7956
commit
299586bf7d
3 files changed
+12
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
@@ -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
|
||||
Reference in new issue
Block a user