From 7e27fdae86e629bac2768946cec346bb64e01923 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH] feat!: split TIKA_IMAGE into image, tag and variant variables Tika was the only image that took name and tag in one variable. Use TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG like the other images, so the tag can be pinned and bumped the same way. TIKA_DOCKER_VARIANT=full selects the full image without naming a tag, so choosing the variant no longer means choosing a version. BREAKING CHANGE: TIKA_IMAGE is no longer read, compose aborts with a message while it is still set. Replace TIKA_IMAGE=apache/tika:latest-full with TIKA_DOCKER_VARIANT=full, or set TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG for any other image. --- .env.example | 14 +++++++++----- README.md | 8 +++++--- search/tika.yml | 4 +++- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index b678c2b..fca0c06 100644 --- a/.env.example +++ b/.env.example @@ -202,13 +202,17 @@ START_ADDITIONAL_SERVICES="" # Enable it by adding the following to the COMPOSE_FILE variable: # search/tika.yml or by using the following command: # docker compose -f docker-compose.yml -f search/tika.yml up -d -# Set the desired docker image tag or digest. -# Defaults to "apache/tika:latest" -# The slim variant is recommended for most use cases as it provides core text extraction +# Docker image to use for the Tika container. Defaults to "apache/tika". +TIKA_DOCKER_IMAGE= +# Docker tag to pull for the Tika container. +# Defaults to "latest" +TIKA_DOCKER_TAG= +# The image variant, appended to the tag. +# The default base variant is recommended for most use cases as it provides core text extraction # functionality with a smaller image size and faster startup time. -# Only use the full variant (apache/tika:latest-full) if you need specialized features +# Only set this to "full" if you need specialized features # like advanced OCR or specific image processing capabilities. -TIKA_IMAGE= +TIKA_DOCKER_VARIANT= ### imagor Preview Generator ### # imagor renders previews through libvips, which reads formats the built-in diff --git a/README.md b/README.md index 5e78728..d8e3d54 100644 --- a/README.md +++ b/README.md @@ -189,12 +189,12 @@ This setup includes: - Support for documents, PDFs, images, and other file types **Tika Image Variant:** -By default, OpenCloud Compose uses `apache/tika:latest` which provides: +By default, OpenCloud Compose uses the base variant of `apache/tika` which provides: - Smaller image size (~300MB vs ~1.2GB for the full variant) - Faster container startup and deployment - Core text extraction functionality for common document formats (PDF, Office docs, text files, etc.) -The base variant is recommended for most use cases. If you need advanced features like specialized OCR processing or specific image format support, you can override the image by setting `TIKA_IMAGE=apache/tika:latest-full` in your `.env` file. +The base variant is recommended for most use cases. If you need advanced features like specialized OCR processing or specific image format support, you can switch to the full variant by setting `TIKA_DOCKER_VARIANT=full` in your `.env` file. ### With imagor Previews @@ -448,7 +448,9 @@ Key variables: | `EURO_OFFICE_JWT_SECRET` | JWT secret for Euro Office (change for production!) | changeme | | `EURO_OFFICE_DOCKER_IMAGE` | Euro Office Docker image | ghcr.io/euro-office/documentserver | | `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | latest | -| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim | +| `TIKA_DOCKER_IMAGE` | Apache Tika Docker image | apache/tika | +| `TIKA_DOCKER_TAG` | Apache Tika Docker tag | latest | +| `TIKA_DOCKER_VARIANT` | Apache Tika image variant, `full` for the full image | (base variant) | | `IMAGOR_DOCKER_IMAGE` | imagor Docker image | shumc/imagor | | `IMAGOR_DOCKER_TAG` | imagor Docker tag | 1.9.14 | | `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test | diff --git a/search/tika.yml b/search/tika.yml index 5169553..9c03e22 100644 --- a/search/tika.yml +++ b/search/tika.yml @@ -1,7 +1,9 @@ --- +x-removed-variables: + TIKA_IMAGE: "${TIKA_IMAGE:+${TIKA_IMAGE_REMOVED:?TIKA_IMAGE (image:tag) is now TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG}}" services: tika: - image: ${TIKA_IMAGE:-apache/tika:latest} + image: ${TIKA_DOCKER_IMAGE:-apache/tika}:${TIKA_DOCKER_TAG:-latest}${TIKA_DOCKER_VARIANT:+-}${TIKA_DOCKER_VARIANT:-} # Using the base variant for smaller image size and faster startup # The base variant includes core functionality for text extraction # Full variant is only needed for specialized OCR/image processing