From 299586bf7daf72b1c70e1a37b661133169367b52 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 7 Oct 2026 20:39:18 +0200 Subject: [PATCH] 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. --- .woodpecker.star | 4 ++++ devtools/deployments/opencloud_full/tika.yml | 7 +++++-- tests/acceptance/docker/src/tika.yml | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.woodpecker.star b/.woodpecker.star index 68cbb10ff9..f46fbfc0a0 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -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", diff --git a/devtools/deployments/opencloud_full/tika.yml b/devtools/deployments/opencloud_full/tika.yml index 081f2876b5..ca796a02b6 100644 --- a/devtools/deployments/opencloud_full/tika.yml +++ b/devtools/deployments/opencloud_full/tika.yml @@ -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" diff --git a/tests/acceptance/docker/src/tika.yml b/tests/acceptance/docker/src/tika.yml index 36bc0a905e..f46d0f6e13 100644 --- a/tests/acceptance/docker/src/tika.yml +++ b/tests/acceptance/docker/src/tika.yml @@ -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