From dc6377ba6fdd77ba30fbee1bd2f70b083879cb8b Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 1/8] chore(renovate): detect every image that takes its tag from a variable The regex manager needed a "# renovate: depName=" annotation above the image line and the compose file in a list, and it only understood a plain x.y.z tag. opensearch was pinned but had neither, so it was never updated. Read the image name from the image line itself, scan all yaml files and accept any tag, with or without a digest. An image is picked up as soon as its tag is the default of a variable, nothing else to remember. --- docker-compose.yml | 1 - renovate.json | 9 ++------- thumbnails/imagor.yml | 1 - yjs/yjs.yml | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8d6cc5e..08faee8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,6 @@ --- services: opencloud: - # renovate: depName=opencloudeu/opencloud-rolling image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-9.2.0} # changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog # release notes: https://docs.opencloud.eu/opencloud_release_notes.html diff --git a/renovate.json b/renovate.json index 5e07ae4..0af79ea 100644 --- a/renovate.json +++ b/renovate.json @@ -31,14 +31,9 @@ "customManagers": [ { "customType": "regex", - "managerFilePatterns": [ - "/^docker-compose\\.yml$/", - "/^weboffice\\/collabora\\.yml$/", - "/^yjs\\/yjs\\.yml$/", - "/^thumbnails\\/imagor\\.yml$/" - ], + "managerFilePatterns": ["/.+\\.ya?ml$/"], "matchStrings": [ - "# renovate: depName=(?[^\\s]+)\\n\\s+image: \\$\\{[^}]+\\}:\\$\\{[^}]+-(?[0-9]+\\.[0-9]+\\.[0-9]+)\\}" + "image: \\$\\{[^}:]+:-(?[^}]+)\\}:\\$\\{[^}:]+:-(?[^@}]+)(?:@(?sha256:[a-f0-9]+))?\\}" ], "datasourceTemplate": "docker" } diff --git a/thumbnails/imagor.yml b/thumbnails/imagor.yml index 2ef4f87..2026082 100644 --- a/thumbnails/imagor.yml +++ b/thumbnails/imagor.yml @@ -1,7 +1,6 @@ --- services: imagor: - # renovate: depName=shumc/imagor image: ${IMAGOR_DOCKER_IMAGE:-shumc/imagor}:${IMAGOR_DOCKER_TAG:-1.10.4} environment: IMAGOR_UNSAFE: "true" diff --git a/yjs/yjs.yml b/yjs/yjs.yml index ea16d55..ec4e8f3 100644 --- a/yjs/yjs.yml +++ b/yjs/yjs.yml @@ -7,7 +7,6 @@ services: # the /yjs route is configured in the proxy - ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml yjs: - # renovate: depName=opencloudeu/yjs image: ${YJS_DOCKER_IMAGE:-opencloudeu/yjs}:${YJS_DOCKER_TAG:-1.1.1} user: ${OC_CONTAINER_UID_GID:-1000:1000} networks: From 7db562fd2558afb5171aad0847929c87026715d5 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 2/8] chore(renovate): automerge patch updates of all images Patch updates were merged automatically for images written as a fixed string, but not for images whose tag is a variable, because the rule was bound to renovate's docker-compose manager. Which manager reads an image says nothing about how risky its patch releases are. Drop the manager from the rule, so it covers every image. An image that should not be merged automatically gets its own rule by package name, where the exception is visible. --- renovate.json | 1 - 1 file changed, 1 deletion(-) diff --git a/renovate.json b/renovate.json index 0af79ea..e094069 100644 --- a/renovate.json +++ b/renovate.json @@ -10,7 +10,6 @@ "labels": ["Type:Dependencies", "Bot:Renovate"] }, { - "matchManagers": ["docker-compose"], "matchUpdateTypes": ["patch"], "automerge": true }, From 7e27fdae86e629bac2768946cec346bb64e01923 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 3/8] 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 From e729047ffff8f1f2f612d13a3fceeefb57521d39 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 4/8] feat: add image variables for clamav and the ldap manager clamav only had a tag variable and the ldap manager none. Give both an image and a tag variable like the other images that default to a moving tag, so every such image is configured, pinned and bumped the same way. --- .env.example | 7 +++++++ antivirus/clamav.yml | 2 +- testing/ldap-manager.yml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index fca0c06..02749d5 100644 --- a/.env.example +++ b/.env.example @@ -294,6 +294,8 @@ EURO_OFFICE_DOCKER_TAG= # Usable modes: partial, skip. # Defaults to "partial" #ANTIVIRUS_MAX_SCAN_SIZE_MODE= +# Docker image to use for the ClamAV container. Defaults to "clamav/clamav". +CLAMAV_DOCKER_IMAGE= # Image version of the ClamAV container. # Defaults to "latest" CLAMAV_DOCKER_TAG= @@ -357,6 +359,11 @@ PROXY_ROLE_ASSIGNMENT_DRIVER= # Set to "true" when using PROXY_ROLE_ASSIGNMENT_DRIVER=default GRAPH_ASSIGN_DEFAULT_USER_ROLE= # If you want to use a keycloak for local testing, you can use testing/external-keycloak.yml and testing/ldap-manager.yml +# Docker image to use for the LDAP manager container. Defaults to "phpldapadmin/phpldapadmin". +LDAP_MANAGER_DOCKER_IMAGE= +# Docker tag to pull for the LDAP manager container. +# Defaults to "latest" +LDAP_MANAGER_DOCKER_TAG= # Domain of your Identity Provider. IDP_DOMAIN= # IdP Issuer URL, which is used to identify the Identity Provider. diff --git a/antivirus/clamav.yml b/antivirus/clamav.yml index a3f0e79..32382a5 100644 --- a/antivirus/clamav.yml +++ b/antivirus/clamav.yml @@ -16,7 +16,7 @@ services: clamav: condition: service_healthy clamav: - image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest} + image: ${CLAMAV_DOCKER_IMAGE:-clamav/clamav}:${CLAMAV_DOCKER_TAG:-latest} environment: # Accepts a number with optional K, M or G suffix. Must be greater or equal to ANTIVIRUS_MAX_SCAN_SIZE above. # K = KiB (1024), M = MiB (1024 * 1024), G = GiB (1024 * 1024 * 1024) diff --git a/testing/ldap-manager.yml b/testing/ldap-manager.yml index 2374ffe..c59b32b 100644 --- a/testing/ldap-manager.yml +++ b/testing/ldap-manager.yml @@ -4,7 +4,7 @@ # This is not a production ready setup. services: ldap-manager: - image: phpldapadmin/phpldapadmin:latest + image: ${LDAP_MANAGER_DOCKER_IMAGE:-phpldapadmin/phpldapadmin}:${LDAP_MANAGER_DOCKER_TAG:-latest} networks: opencloud-net: environment: From 3cc4a6b2a690b35fd311a06ad6a150231bdaf4c1 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 5/8] chore: pin tika, clamav, radicale, phpldapadmin and euro-office images These five images defaulted to "latest". A host that never pulls stays on whatever "latest" was at first start, a fresh install gets an untested version, and one repository state does not describe one set of images. Pin each to the version "latest" points to today. Euro Office publishes no version tags, so it is pinned by digest. The tag variables can still be set to "latest". --- .env.example | 11 ++++++----- README.md | 4 ++-- antivirus/clamav.yml | 2 +- radicale/radicale.yml | 2 +- search/tika.yml | 2 +- testing/ldap-manager.yml | 2 +- weboffice/euro-office.yml | 2 +- 7 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.env.example b/.env.example index 02749d5..dbd68f9 100644 --- a/.env.example +++ b/.env.example @@ -205,7 +205,7 @@ START_ADDITIONAL_SERVICES="" # 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" +# Defaults to the pinned version. Use git pull to update. 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 @@ -279,7 +279,7 @@ EURO_OFFICE_JWT_SECRET= # Defaults to "ghcr.io/euro-office/documentserver" EURO_OFFICE_DOCKER_IMAGE= # Euro Office Docker tag. -# Defaults to "latest" +# Defaults to the pinned digest. Use git pull to update. EURO_OFFICE_DOCKER_TAG= @@ -297,7 +297,7 @@ EURO_OFFICE_DOCKER_TAG= # Docker image to use for the ClamAV container. Defaults to "clamav/clamav". CLAMAV_DOCKER_IMAGE= # Image version of the ClamAV container. -# Defaults to "latest" +# Defaults to the pinned version. Use git pull to update. CLAMAV_DOCKER_TAG= @@ -362,7 +362,7 @@ GRAPH_ASSIGN_DEFAULT_USER_ROLE= # Docker image to use for the LDAP manager container. Defaults to "phpldapadmin/phpldapadmin". LDAP_MANAGER_DOCKER_IMAGE= # Docker tag to pull for the LDAP manager container. -# Defaults to "latest" +# Defaults to the pinned version. Use git pull to update. LDAP_MANAGER_DOCKER_TAG= # Domain of your Identity Provider. IDP_DOMAIN= @@ -450,7 +450,8 @@ KC_DB_PASSWORD= # Docker image to use for the Radicale Container #RADICALE_DOCKER_IMAGE=opencloudeu/radicale # Docker tag to pull for the Radicale Container -#RADICALE_DOCKER_TAG=latest +# Defaults to the pinned version. Use git pull to update. +#RADICALE_DOCKER_TAG= # Define the storage location for the Radicale data. Set the path to a local path. # Ensure that the configuration and data directories are owned by the user and group with ID 1000:1000. # This matches the default user inside the container and avoids permission issues when accessing files. diff --git a/README.md b/README.md index d8e3d54..6c68fec 100644 --- a/README.md +++ b/README.md @@ -447,9 +447,9 @@ Key variables: | `EURO_OFFICE_DOMAIN` | Euro Office document server domain | euro-office.opencloud.test | | `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 | +| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | (pinned digest) | | `TIKA_DOCKER_IMAGE` | Apache Tika Docker image | apache/tika | -| `TIKA_DOCKER_TAG` | Apache Tika Docker tag | latest | +| `TIKA_DOCKER_TAG` | Apache Tika Docker tag | (pinned version) | | `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 | diff --git a/antivirus/clamav.yml b/antivirus/clamav.yml index 32382a5..fadaa36 100644 --- a/antivirus/clamav.yml +++ b/antivirus/clamav.yml @@ -16,7 +16,7 @@ services: clamav: condition: service_healthy clamav: - image: ${CLAMAV_DOCKER_IMAGE:-clamav/clamav}:${CLAMAV_DOCKER_TAG:-latest} + image: ${CLAMAV_DOCKER_IMAGE:-clamav/clamav}:${CLAMAV_DOCKER_TAG:-1.5.4} environment: # Accepts a number with optional K, M or G suffix. Must be greater or equal to ANTIVIRUS_MAX_SCAN_SIZE above. # K = KiB (1024), M = MiB (1024 * 1024), G = GiB (1024 * 1024 * 1024) diff --git a/radicale/radicale.yml b/radicale/radicale.yml index 52667a1..b292a52 100644 --- a/radicale/radicale.yml +++ b/radicale/radicale.yml @@ -5,7 +5,7 @@ services: # external sites needs to have additional routes configured in the proxy - ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml radicale: - image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-latest} + image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-v3.9.0} user: ${OC_CONTAINER_UID_GID:-1000:1000} networks: opencloud-net: diff --git a/search/tika.yml b/search/tika.yml index 9c03e22..a8a65f5 100644 --- a/search/tika.yml +++ b/search/tika.yml @@ -3,7 +3,7 @@ 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_DOCKER_IMAGE:-apache/tika}:${TIKA_DOCKER_TAG:-latest}${TIKA_DOCKER_VARIANT:+-}${TIKA_DOCKER_VARIANT:-} + image: ${TIKA_DOCKER_IMAGE:-apache/tika}:${TIKA_DOCKER_TAG:-4.2.0}${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 diff --git a/testing/ldap-manager.yml b/testing/ldap-manager.yml index c59b32b..e079bc4 100644 --- a/testing/ldap-manager.yml +++ b/testing/ldap-manager.yml @@ -4,7 +4,7 @@ # This is not a production ready setup. services: ldap-manager: - image: ${LDAP_MANAGER_DOCKER_IMAGE:-phpldapadmin/phpldapadmin}:${LDAP_MANAGER_DOCKER_TAG:-latest} + image: ${LDAP_MANAGER_DOCKER_IMAGE:-phpldapadmin/phpldapadmin}:${LDAP_MANAGER_DOCKER_TAG:-2.3.12} networks: opencloud-net: environment: diff --git a/weboffice/euro-office.yml b/weboffice/euro-office.yml index 884bb01..52484b9 100644 --- a/weboffice/euro-office.yml +++ b/weboffice/euro-office.yml @@ -24,7 +24,7 @@ services: - ./config/euro-office/app-registry.yaml:/etc/opencloud/app-registry.yaml euro-office: - image: ${EURO_OFFICE_DOCKER_IMAGE:-ghcr.io/euro-office/documentserver}:${EURO_OFFICE_DOCKER_TAG:-latest} + image: ${EURO_OFFICE_DOCKER_IMAGE:-ghcr.io/euro-office/documentserver}:${EURO_OFFICE_DOCKER_TAG:-latest@sha256:2fadc1b3dc99250d6576fc0c0f34349db6725b752b08e91db9831fbb803fc5c2} # changelog https://github.com/EURO-office/DocumentServer/releases networks: opencloud-net: From 33c9525adf110cc69276c54c5fa558135d4471b2 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:49:26 +0100 Subject: [PATCH 6/8] docs: describe image variables consistently Concrete default versions go stale with the first renovate bump, the imagor one already was. Use the same sentence for every pinned image and list all image variables uncommented and empty in .env.example. --- .env.example | 33 +++++++++++++++++++++++---------- README.md | 4 ++-- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.env.example b/.env.example index dbd68f9..31cc1d6 100644 --- a/.env.example +++ b/.env.example @@ -89,7 +89,7 @@ TRAEFIK_LOG_LEVEL= # Defaults to production if not set otherwise OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling # The openCloud container version. -# Defaults to the latest version-tag. Use git pull to update. +# Defaults to the pinned version. Use git pull to update. OC_DOCKER_TAG= # The default id used in opencloud containers is 1000 for user and group. # If you want to change the default, use the following variable and the format [UID]:[GID]. @@ -214,6 +214,17 @@ TIKA_DOCKER_TAG= # like advanced OCR or specific image processing capabilities. TIKA_DOCKER_VARIANT= +### OpenSearch Search Engine ### +# OpenSearch replaces the embedded bleve search index. +# Enable it by adding search/opensearch.yml to the COMPOSE_FILE variable or by +# using the following command: +# docker compose -f docker-compose.yml -f search/opensearch.yml up -d +# Docker image to use for the OpenSearch container. Defaults to "opensearchproject/opensearch". +OPENSEARCH_DOCKER_IMAGE= +# Docker tag to pull for the OpenSearch container. +# Defaults to the pinned version. Use git pull to update. +OPENSEARCH_DOCKER_TAG= + ### imagor Preview Generator ### # imagor renders previews through libvips, which reads formats the built-in # generator does not, heic, heif and avif among them. @@ -225,9 +236,10 @@ TIKA_DOCKER_VARIANT= # "ghcr.io/cshum/imagor-magick" adds ImageMagick for formats libvips does not read, # PSD, XCF and BMP among them. Slower, more memory and a larger attack surface, # imagor recommends the standard image for most setups. -#IMAGOR_DOCKER_IMAGE= -# Docker tag to pull for the imagor container. Defaults to "1.9.14". -#IMAGOR_DOCKER_TAG= +IMAGOR_DOCKER_IMAGE= +# Docker tag to pull for the imagor container. +# Defaults to the pinned version. Use git pull to update. +IMAGOR_DOCKER_TAG= # Largest source image imagor accepts, in bytes. Defaults to "50000000". #IMAGOR_MAX_SOURCE_SIZE= # Mime types previews are announced and attempted for on top of the built-in list, @@ -422,10 +434,11 @@ KC_DB_PASSWORD= # The yjs server relays updates between users editing the same file. # It is enabled by default via yjs/yjs.yml in the COMPOSE_FILE variable. # The browser reaches it under https://{OC_DOMAIN}/yjs, the OpenCloud proxy forwards it. -# Docker image to use for the yjs container. -#YJS_DOCKER_IMAGE=opencloudeu/yjs +# Docker image to use for the yjs container. Defaults to "opencloudeu/yjs". +YJS_DOCKER_IMAGE= # Docker tag to pull for the yjs container. -#YJS_DOCKER_TAG= +# Defaults to the pinned version. Use git pull to update. +YJS_DOCKER_TAG= # URL the yjs server uses to reach OpenCloud. Defaults to "http://opencloud:9200". #YJS_OPENCLOUD_URL= # Grace period in milliseconds for a graceful shutdown. Defaults to "15000". @@ -447,11 +460,11 @@ KC_DB_PASSWORD= # Radicale is a small open-source CalDAV (calendars, to-do lists) and CardDAV (contacts) server. # When enabled OpenCloud is configured as a reverse proxy for Radicale, providing all authenticated # OpenCloud users access to a Personal Calendar and Addressbook -# Docker image to use for the Radicale Container -#RADICALE_DOCKER_IMAGE=opencloudeu/radicale +# Docker image to use for the Radicale Container. Defaults to "opencloudeu/radicale". +RADICALE_DOCKER_IMAGE= # Docker tag to pull for the Radicale Container # Defaults to the pinned version. Use git pull to update. -#RADICALE_DOCKER_TAG= +RADICALE_DOCKER_TAG= # Define the storage location for the Radicale data. Set the path to a local path. # Ensure that the configuration and data directories are owned by the user and group with ID 1000:1000. # This matches the default user inside the container and avoids permission issues when accessing files. diff --git a/README.md b/README.md index 6c68fec..8062cf8 100644 --- a/README.md +++ b/README.md @@ -439,7 +439,7 @@ Key variables: | `COMPOSE_FILE` | Colon-separated list of compose files to use | (commented out) | | `OC_DOMAIN` | OpenCloud domain | cloud.opencloud.test | | `INITIAL_ADMIN_PASSWORD ` | OpenCloud password for the admin user | (no value) | -| `OC_DOCKER_TAG` | OpenCloud image tag | latest | +| `OC_DOCKER_TAG` | OpenCloud image tag | (pinned version) | | `OC_CONFIG_DIR` | Config directory path | (Docker volume) | | `OC_DATA_DIR` | Data directory path | (Docker volume) | | `INSECURE` | Skip certificate validation | true | @@ -452,7 +452,7 @@ Key variables: | `TIKA_DOCKER_TAG` | Apache Tika Docker tag | (pinned version) | | `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 | +| `IMAGOR_DOCKER_TAG` | imagor Docker tag | (pinned version) | | `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test | | `KEYCLOAK_ADMIN` | Keycloak admin username | kcadmin | | `KEYCLOAK_ADMIN_PASSWORD` | Keycloak admin password | admin | From b32d1938516b47b4a2b6e463029a6afc8e3ec8d1 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 12 Nov 2026 01:50:33 +0100 Subject: [PATCH 7/8] docs: add AGENTS.md with the steps for adding an image The image schema, the wording in .env.example and the renovate rules are conventions no file states on its own. Write them down where coding agents and contributors look first. --- AGENTS.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ CLAUDE.md | 1 + 2 files changed, 66 insertions(+) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..fa96f99 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,65 @@ +# AGENTS.md + +Compose files for running OpenCloud. Each module is one compose file, modules are combined through `COMPOSE_FILE` (see `README.md`). + +## Adding a Docker image + +Every new image follows one schema. Renovate detects it from the schema alone, there is no annotation and no file list to maintain. + +1. Write the image line with an image and a tag variable, both with a default: + + ```yaml + image: ${_DOCKER_IMAGE:-}:${_DOCKER_TAG:-} + ``` + + `` is an exact released version, usually the one `latest` points to today. An image without version tags is pinned by the digest of its multi-arch index (`docker buildx imagetools inspect :latest`): + + ```yaml + image: ${_DOCKER_IMAGE:-}:${_DOCKER_TAG:-latest@sha256:} + ``` + +2. Document both variables in `.env.example`, uncommented and empty, in this wording: + + ```sh + # Docker image to use for the container. Defaults to "". + _DOCKER_IMAGE= + # Docker tag to pull for the container. + # Defaults to the pinned version. Use git pull to update. + _DOCKER_TAG= + ``` + + The version number lives only in the compose file. `.env.example` and `README.md` say "pinned version", because renovate bumps the compose file and a copied number goes stale. + + `.env.example` is the reference for variables. The table in `README.md` is a selection: add a row there only when asked. + +3. Check compose. Done when the pinned image is printed and there is no warning: + + ```sh + docker compose --env-file .env.example -f docker-compose.yml -f .yml config | grep image: + ``` + +4. Check renovate. Done when the output shows the image with its `depName` and `currentValue`: + + ```sh + docker run --rm -v "$PWD:/usr/src/app" -e LOG_LEVEL=debug renovate/renovate --platform=local 2>&1 \ + | grep -A3 '"depName": ""' + ``` + + Renovate finds files through `git ls-files`: `git add` a new compose file before the run. To see an update proposal, pin an older version for the run and widen the grep to `-A12`. + +## How renovate treats images + +- **Detection:** one pattern in `renovate.json` (`customManagers`) matches the schema above in every yaml file and reads name, tag and digest from the `image:` line. Images written as a fixed string (`traefik:v3.7.18`) are older and handled by renovate's `docker-compose` manager. +- **Automerge:** patch updates are merged automatically for every image. An image that needs a manual merge gets its own rule by package name, placed after the automerge rule: + + ```json + { "matchPackageNames": [""], "automerge": false } + ``` + +- **Version limits:** an image that must stay on one major gets an `allowedVersions` rule by package name, like `postgres`. +- **Tag suffix variants:** a variant published as a tag suffix is a third variable appended to the tag, like `TIKA_DOCKER_VARIANT` in `search/tika.yml`. A variant published as a separate image needs nothing, the image variable selects it. +- **Stable branches:** `renovate.json` on `main` also governs `stable-*`. Check a pattern change against the `image:` lines on those branches. + +## Removing or renaming a variable + +Compose ignores a variable it no longer reads, so an old `.env` fails silently. Make it fail loudly: add the old name to `x-removed-variables` in the module's compose file, like `TIKA_IMAGE` in `search/tika.yml`. Compose then aborts with the message when the old variable is still set. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..43c994c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md From 5df831de9a4cded09629286fc3fac0f24d0a16f9 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 25 Nov 2026 11:38:00 +0100 Subject: [PATCH 8/8] chore(renovate): check the euro-office image once a week --- AGENTS.md | 1 + renovate.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index fa96f99..2e2b322 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -57,6 +57,7 @@ Every new image follows one schema. Renovate detects it from the schema alone, t ``` - **Version limits:** an image that must stay on one major gets an `allowedVersions` rule by package name, like `postgres`. +- **Update frequency:** an image pinned by digest gets a PR for every new `latest`. If that is too often, limit it with a `schedule` rule by package name, like `ghcr.io/euro-office/documentserver` (weekly). - **Tag suffix variants:** a variant published as a tag suffix is a third variable appended to the tag, like `TIKA_DOCKER_VARIANT` in `search/tika.yml`. A variant published as a separate image needs nothing, the image variable selects it. - **Stable branches:** `renovate.json` on `main` also governs `stable-*`. Check a pattern change against the `image:` lines on those branches. diff --git a/renovate.json b/renovate.json index e094069..d3d7783 100644 --- a/renovate.json +++ b/renovate.json @@ -18,6 +18,10 @@ "matchUpdateTypes": ["major", "minor"], "enabled": false }, + { + "matchPackageNames": ["ghcr.io/euro-office/documentserver"], + "schedule": ["* 0-3 * * 1"] + }, { "matchPackageNames": ["postgres"], "matchManagers": ["docker-compose"],