From f815d56835be2168d856bce81585ccac09d8f733 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 01:52:57 +0100 Subject: [PATCH 01/13] feat: add Docker image version check integration test and CI workflow - Add tests/integration/test_docker_image_versions.py that checks all roles/web-*/config/main.yml for outdated semver-compatible Docker image versions against Docker Hub - Non-Docker-Hub images (ghcr.io etc.) are listed as unchecked with their current version - Suppress individual checks with # nocheck: docker-version above version: - GitHub Actions ::warning:: annotations are emitted in CI - Add .github/workflows/test-docker-image-versions.yml as standalone workflow - Integrate workflow into ci-orchestrator.yml Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci-orchestrator.yml | 4 + .../workflows/test-docker-image-versions.yml | 35 +++ .../integration/test_docker_image_versions.py | 269 ++++++++++++++++++ 3 files changed, 308 insertions(+) create mode 100644 .github/workflows/test-docker-image-versions.yml create mode 100644 tests/integration/test_docker_image_versions.py diff --git a/.github/workflows/ci-orchestrator.yml b/.github/workflows/ci-orchestrator.yml index 7d106aa514..61e8ccc863 100644 --- a/.github/workflows/ci-orchestrator.yml +++ b/.github/workflows/ci-orchestrator.yml @@ -113,6 +113,10 @@ jobs: steps: - run: echo "lint gate passed" + # Docker image version check (warns about outdated images, never blocks) + test-docker-image-versions: + uses: ./.github/workflows/test-docker-image-versions.yml + # Build Docker Images build-ci-images: needs: fork-prereqs-ready diff --git a/.github/workflows/test-docker-image-versions.yml b/.github/workflows/test-docker-image-versions.yml new file mode 100644 index 0000000000..a42a6f3f7d --- /dev/null +++ b/.github/workflows/test-docker-image-versions.yml @@ -0,0 +1,35 @@ +name: Test Docker Image Versions + +on: + workflow_call: + +permissions: + contents: read + +jobs: + test-docker-image-versions: + name: 🐳 Check Docker image versions + runs-on: ubuntu-latest + timeout-minutes: 20 + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install PyYAML + + - name: Check Docker image versions + run: | + python -m unittest discover \ + -s tests/integration \ + -t . \ + -p "test_docker_image_versions.py" \ + -v diff --git a/tests/integration/test_docker_image_versions.py b/tests/integration/test_docker_image_versions.py new file mode 100644 index 0000000000..d299d2d2fd --- /dev/null +++ b/tests/integration/test_docker_image_versions.py @@ -0,0 +1,269 @@ +"""Check Docker image versions in roles/web-*/config/main.yml. + +For each service with a semver-compatible version tag the latest available +tag on Docker Hub is fetched and compared. Outdated versions are reported as +GitHub Actions ``::warning::`` annotations or plain stdout warnings. + +The test always passes so that CI is not blocked. Developers are notified of +available updates via the warning output. + +Semver-compatible version formats checked: + x / x.x / x.x.x / x.x.x.x (with optional leading ``v``) + +Suppress a check by placing ``# nocheck: docker-version`` on the line +directly above the ``version:`` key (blank lines between are ignored, +but any non-comment line resets the search): + + # nocheck: docker-version + version: "4.5" +""" + +from __future__ import annotations + +import json +import os +import re +import time +import unittest +import urllib.error +import urllib.request +from pathlib import Path + +import yaml + +_REPO_ROOT = Path(__file__).resolve().parents[2] +_ROLES_ROOT = _REPO_ROOT / "roles" + +# Matches: 1 / 1.2 / 1.2.3 / 1.2.3.4 with optional leading "v" +_SEMVER_RE = re.compile(r"^v?\d+(\.\d+){0,3}$") + +_NOCHECK_TAG = "# nocheck: docker-version" + + +def _is_semver(value: str) -> bool: + return bool(_SEMVER_RE.match(str(value).strip())) + + +def _version_key(tag: str) -> tuple[int, ...]: + """Normalised 4-tuple for version comparison.""" + v = str(tag).strip().lstrip("v") + tup = tuple(int(x) for x in v.split(".")) + return tup + (0,) * (4 - len(tup)) + + +def _is_dockerhub(image: str) -> bool: + """Return True when *image* refers to a Docker Hub repository.""" + first_part = image.split("/")[0] + return "." not in first_part and ":" not in first_part + + +def _fetch_dockerhub_tags(image: str, max_pages: int = 5) -> list[str]: + """Return tag names for a Docker Hub image (up to *max_pages* x 100).""" + repo = image if "/" in image else f"library/{image}" + tags: list[str] = [] + for page in range(1, max_pages + 1): + url = ( + f"https://hub.docker.com/v2/repositories/{repo}/tags/" + f"?page_size=100&page={page}" + ) + req = urllib.request.Request( + url, headers={"User-Agent": "infinito-nexus-version-check"} + ) + try: + with urllib.request.urlopen(req, timeout=15) as resp: + if resp.status == 429: + time.sleep(2) + continue + body = json.loads(resp.read().decode()) + except (urllib.error.URLError, OSError, json.JSONDecodeError): + break + tags.extend(r["name"] for r in body.get("results", [])) + if not body.get("next"): + break + return tags + + +def _latest_semver(tags: list[str]) -> str | None: + """Return the highest semver-compatible tag from *tags*, or None.""" + candidates = [t for t in tags if _is_semver(t)] + return max(candidates, key=_version_key, default=None) + + +def _suppressed_services(config_path: Path) -> set[str]: + """Return service names whose ``version:`` line is preceded by the nocheck tag.""" + raw = config_path.read_text(encoding="utf-8") + lines = raw.splitlines() + + # Collect 0-based line numbers of suppressed version: keys + suppressed_lines: set[int] = set() + for i, line in enumerate(lines): + if not re.search(r"^\s+version\s*:", line): + continue + for j in range(i - 1, -1, -1): + prev = lines[j].strip() + if prev == _NOCHECK_TAG: + suppressed_lines.add(i) + break + if prev and not prev.startswith("#"): + break # non-comment line resets the nocheck window + + if not suppressed_lines: + return set() + + # Map suppressed line numbers to service names via YAML node tree + root = yaml.compose(raw) + if not isinstance(root, yaml.MappingNode): + return set() + + names: set[str] = set() + for key, val in root.value: + if key.value != "compose" or not isinstance(val, yaml.MappingNode): + continue + for k2, v2 in val.value: + if k2.value != "services" or not isinstance(v2, yaml.MappingNode): + continue + for svc_key, svc_val in v2.value: + if not isinstance(svc_val, yaml.MappingNode): + continue + for fk, _ in svc_val.value: + if fk.value == "version" and fk.start_mark.line in suppressed_lines: + names.add(svc_key.value) + return names + + +def _collect_entries() -> list[dict]: + """Collect (role, service, image, version, config_path) for semver versions.""" + entries: list[dict] = [] + for config_path in sorted(_ROLES_ROOT.glob("web-*/config/main.yml")): + role = config_path.parts[-3] + rel_path = str(config_path.relative_to(_REPO_ROOT)) + try: + raw = config_path.read_text(encoding="utf-8") + data = yaml.safe_load(raw) or {} + except yaml.YAMLError: + continue + suppressed = _suppressed_services(config_path) + services = (data.get("compose") or {}).get("services") or {} + for svc, conf in services.items(): + if svc in suppressed: + continue + if not isinstance(conf, dict): + continue + image = conf.get("image") + version = conf.get("version") + if not image or version is None: + continue + version = str(version).strip() + if not _is_semver(version): + continue + entries.append( + { + "role": role, + "service": svc, + "image": image, + "version": version, + "config_path": rel_path, + } + ) + return entries + + +def _emit_annotation( + config_path: str, + role: str, + service: str, + image: str, + current: str, + latest: str, +) -> None: + msg = ( + f"{role}/{service}: {image} is at {current}, " + f"latest semver tag is {latest}" + ) + if os.getenv("GITHUB_ACTIONS") == "true": + print(f"::warning file={config_path},title=āš ļø Outdated Docker image::{msg}") + + +def _emit_unchecked_annotation(config_path: str, role: str, service: str, image: str) -> None: + msg = ( + f"{role}/{service}: {image} version could not be checked " + f"(registry not supported, only Docker Hub is checked)" + ) + if os.getenv("GITHUB_ACTIONS") == "true": + print(f"::warning file={config_path},title=šŸ” Unchecked Docker image::{msg}") + + + +class TestDockerImageVersions(unittest.TestCase): + """Warn about outdated Docker image versions in roles/web-*/config/main.yml.""" + + def test_image_versions_are_current(self) -> None: + entries = _collect_entries() + self.assertTrue(entries, "No semver-versioned config entries found") + + # Deduplicate Docker Hub queries per image + image_tags: dict[str, list[str]] = {} + for e in entries: + img = e["image"] + if _is_dockerhub(img) and img not in image_tags: + image_tags[img] = _fetch_dockerhub_tags(img) + + outdated: list[dict] = [] + unchecked: list[dict] = [] + for e in entries: + if not _is_dockerhub(e["image"]): + unchecked.append(e) + continue + tags = image_tags.get(e["image"], []) + latest = _latest_semver(tags) + if latest and _version_key(e["version"]) < _version_key(latest): + outdated.append({**e, "latest": latest}) + + if outdated: + col_w = (35, 20, 40, 15) + header = ( + f"{'Role':<{col_w[0]}} {'Service':<{col_w[1]}} " + f"{'Image':<{col_w[2]}} {'Current':<{col_w[3]}} Latest" + ) + rows = "\n".join( + f"{o['role']:<{col_w[0]}} {o['service']:<{col_w[1]}} " + f"{o['image']:<{col_w[2]}} {o['version']:<{col_w[3]}} {o['latest']}" + for o in outdated + ) + print(f"\nāš ļø Outdated Docker image versions:\n{header}\n{'-' * 120}\n{rows}\n\nšŸ’” To suppress a warning add above the version: key:\n # nocheck: docker-version") + for o in outdated: + _emit_annotation( + o["config_path"], + o["role"], + o["service"], + o["image"], + o["version"], + o["latest"], + ) + + if unchecked: + col_w = (35, 20, 40, 15) + header = ( + f"{'Role':<{col_w[0]}} {'Service':<{col_w[1]}} " + f"{'Image':<{col_w[2]}} Current" + ) + rows = "\n".join( + f"{o['role']:<{col_w[0]}} {o['service']:<{col_w[1]}} " + f"{o['image']:<{col_w[2]}} {o['version']}" + for o in unchecked + ) + print( + f"\nšŸ” Unchecked Docker image versions (registry not supported):\n" + f"{header}\n{'-' * 100}\n{rows}" + ) + for o in unchecked: + _emit_unchecked_annotation( + o["config_path"], o["role"], o["service"], o["image"] + ) + + # Always pass - outdated images are warnings, not hard failures + self.assertIsNotNone(entries) + + +if __name__ == "__main__": + unittest.main() From 118c92b96adb3ed13bd29325b582c4c6d468836a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 01:53:49 +0100 Subject: [PATCH 02/13] docs: add nocheck docker-version syntax to AGENTS.md Co-Authored-By: Claude Sonnet 4.6 --- AGENTS.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 0e42b15aa7..837c178ffb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,13 +17,18 @@ Follow this coding standards: - [shellcheck](https://github.com/koalaman/shellcheck) - [hadolint](https://github.com/hadolint/hadolint) +### Refactoring + +- If you touch files refactor them by the Code Quality rules +- Check if other files in the project use similar code and refactor it + ## Architecture ### roles #### web-* - Prefer `Dockerfile` over `Dockerfile.j2`. -- Prefer one time variable definition in `vars/main.yml` over `lookup` or dot connected variables in `.j2` or `.yml` files +- Prefer one time variable definition in `vars/main.yml` over `lookup()` or dot connected variables in `*.j2` or `*.yml` files - Variables which are just defined once are constants and MUST be written uppercase ## Semantic @@ -37,6 +42,20 @@ Solve semantic errors in text whenever you find them without explicit order. - Verify before every commit with `make test` - If fails execute: `make clean-sudo` and afterwards `make test` again +## Tests + +- Write unit, integration and lint tests in the `tests` folder with the python `unittest` framework + +### Unit + +- Implement a unit test for each `*.py` file and place it in the equivalent path in the `tests/unit` folder + +### Playwright + +Playwright tests should minimum check: +- login +- logout + ## Help ### Locale Development Environment From 65e65ba2383edfca8fae841d660ac4d0128662e2 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 02:05:41 +0100 Subject: [PATCH 03/13] feat: add ghcr.io support and depth-aware version comparison - Support docker.io/ prefix by stripping it and querying Docker Hub - Add ghcr.io support via anonymous Bearer token flow (no secrets needed) - Depth-aware version comparison: version: "15" compares only x tags, version: "8.3" only x.x tags, version: "2.12.0" only x.x.x tags Co-Authored-By: Claude Sonnet 4.6 --- .../integration/test_docker_image_versions.py | 94 ++++++++++++++++--- 1 file changed, 83 insertions(+), 11 deletions(-) diff --git a/tests/integration/test_docker_image_versions.py b/tests/integration/test_docker_image_versions.py index d299d2d2fd..6457c0b318 100644 --- a/tests/integration/test_docker_image_versions.py +++ b/tests/integration/test_docker_image_versions.py @@ -52,14 +52,27 @@ def _version_key(tag: str) -> tuple[int, ...]: def _is_dockerhub(image: str) -> bool: - """Return True when *image* refers to a Docker Hub repository.""" + """Return True when *image* refers to a Docker Hub repository. + + Handles both plain names (``nginx``, ``gitea/gitea``) and the explicit + ``docker.io/`` registry prefix. + """ + if image.startswith("docker.io/"): + return True first_part = image.split("/")[0] return "." not in first_part and ":" not in first_part +def _dockerhub_repo(image: str) -> str: + """Normalise a Docker Hub image reference to ``namespace/name``.""" + if image.startswith("docker.io/"): + image = image[len("docker.io/"):] + return image if "/" in image else f"library/{image}" + + def _fetch_dockerhub_tags(image: str, max_pages: int = 5) -> list[str]: """Return tag names for a Docker Hub image (up to *max_pages* x 100).""" - repo = image if "/" in image else f"library/{image}" + repo = _dockerhub_repo(image) tags: list[str] = [] for page in range(1, max_pages + 1): url = ( @@ -83,9 +96,60 @@ def _fetch_dockerhub_tags(image: str, max_pages: int = 5) -> list[str]: return tags -def _latest_semver(tags: list[str]) -> str | None: - """Return the highest semver-compatible tag from *tags*, or None.""" - candidates = [t for t in tags if _is_semver(t)] +def _is_ghcr(image: str) -> bool: + """Return True when *image* refers to a GitHub Container Registry repository.""" + return image.startswith("ghcr.io/") + + +def _fetch_ghcr_tags(image: str) -> list[str]: + """Return tag names for a ghcr.io image using anonymous token flow.""" + name = image[len("ghcr.io/"):] # "owner/repo" + token_url = ( + f"https://ghcr.io/token?scope=repository:{name}:pull&service=ghcr.io" + ) + try: + req = urllib.request.Request( + token_url, headers={"User-Agent": "infinito-nexus-version-check"} + ) + with urllib.request.urlopen(req, timeout=15) as resp: + token_body = json.loads(resp.read().decode()) + token = token_body.get("token") or token_body.get("access_token") + except (urllib.error.URLError, OSError, json.JSONDecodeError): + return [] + + if not token: + return [] + + tags_url = f"https://ghcr.io/v2/{name}/tags/list" + req = urllib.request.Request( + tags_url, + headers={ + "Authorization": f"Bearer {token}", + "User-Agent": "infinito-nexus-version-check", + }, + ) + try: + with urllib.request.urlopen(req, timeout=15) as resp: + body = json.loads(resp.read().decode()) + except (urllib.error.URLError, OSError, json.JSONDecodeError): + return [] + + return body.get("tags") or [] + + +def _version_depth(tag: str) -> int: + """Return the number of dot-separated segments in a version string.""" + return len(str(tag).strip().lstrip("v").split(".")) + + +def _latest_semver(tags: list[str], depth: int) -> str | None: + """Return the highest semver tag from *tags* that has exactly *depth* segments. + + This ensures that a configured ``version: "15"`` (depth 1) is only compared + against other single-segment tags, ``version: "8.3"`` (depth 2) only against + ``x.x`` tags, and so on. + """ + candidates = [t for t in tags if _is_semver(t) and _version_depth(t) == depth] return max(candidates, key=_version_key, default=None) @@ -187,7 +251,7 @@ def _emit_annotation( def _emit_unchecked_annotation(config_path: str, role: str, service: str, image: str) -> None: msg = ( f"{role}/{service}: {image} version could not be checked " - f"(registry not supported, only Docker Hub is checked)" + f"(registry not supported)" ) if os.getenv("GITHUB_ACTIONS") == "true": print(f"::warning file={config_path},title=šŸ” Unchecked Docker image::{msg}") @@ -201,21 +265,29 @@ class TestDockerImageVersions(unittest.TestCase): entries = _collect_entries() self.assertTrue(entries, "No semver-versioned config entries found") - # Deduplicate Docker Hub queries per image + # Deduplicate registry queries per image image_tags: dict[str, list[str]] = {} for e in entries: img = e["image"] - if _is_dockerhub(img) and img not in image_tags: + if img in image_tags: + continue + if _is_dockerhub(img): image_tags[img] = _fetch_dockerhub_tags(img) + elif _is_ghcr(img): + image_tags[img] = _fetch_ghcr_tags(img) outdated: list[dict] = [] unchecked: list[dict] = [] for e in entries: - if not _is_dockerhub(e["image"]): + img = e["image"] + if not _is_dockerhub(img) and not _is_ghcr(img): unchecked.append(e) continue - tags = image_tags.get(e["image"], []) - latest = _latest_semver(tags) + tags = image_tags.get(img, []) + if not tags: + unchecked.append(e) + continue + latest = _latest_semver(tags, _version_depth(e["version"])) if latest and _version_key(e["version"]) < _version_key(latest): outdated.append({**e, "latest": latest}) From cd2a17cd3b57589439f1c699c0d61de5bc51d5ad Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 02:16:58 +0100 Subject: [PATCH 04/13] style: apply ruff formatting to test_docker_image_versions.py Co-Authored-By: Claude Sonnet 4.6 --- .../integration/test_docker_image_versions.py | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/integration/test_docker_image_versions.py b/tests/integration/test_docker_image_versions.py index 6457c0b318..8949945973 100644 --- a/tests/integration/test_docker_image_versions.py +++ b/tests/integration/test_docker_image_versions.py @@ -66,7 +66,7 @@ def _is_dockerhub(image: str) -> bool: def _dockerhub_repo(image: str) -> str: """Normalise a Docker Hub image reference to ``namespace/name``.""" if image.startswith("docker.io/"): - image = image[len("docker.io/"):] + image = image[len("docker.io/") :] return image if "/" in image else f"library/{image}" @@ -103,10 +103,8 @@ def _is_ghcr(image: str) -> bool: def _fetch_ghcr_tags(image: str) -> list[str]: """Return tag names for a ghcr.io image using anonymous token flow.""" - name = image[len("ghcr.io/"):] # "owner/repo" - token_url = ( - f"https://ghcr.io/token?scope=repository:{name}:pull&service=ghcr.io" - ) + name = image[len("ghcr.io/") :] # "owner/repo" + token_url = f"https://ghcr.io/token?scope=repository:{name}:pull&service=ghcr.io" try: req = urllib.request.Request( token_url, headers={"User-Agent": "infinito-nexus-version-check"} @@ -240,15 +238,14 @@ def _emit_annotation( current: str, latest: str, ) -> None: - msg = ( - f"{role}/{service}: {image} is at {current}, " - f"latest semver tag is {latest}" - ) + msg = f"{role}/{service}: {image} is at {current}, latest semver tag is {latest}" if os.getenv("GITHUB_ACTIONS") == "true": print(f"::warning file={config_path},title=āš ļø Outdated Docker image::{msg}") -def _emit_unchecked_annotation(config_path: str, role: str, service: str, image: str) -> None: +def _emit_unchecked_annotation( + config_path: str, role: str, service: str, image: str +) -> None: msg = ( f"{role}/{service}: {image} version could not be checked " f"(registry not supported)" @@ -257,7 +254,6 @@ def _emit_unchecked_annotation(config_path: str, role: str, service: str, image: print(f"::warning file={config_path},title=šŸ” Unchecked Docker image::{msg}") - class TestDockerImageVersions(unittest.TestCase): """Warn about outdated Docker image versions in roles/web-*/config/main.yml.""" @@ -302,7 +298,9 @@ class TestDockerImageVersions(unittest.TestCase): f"{o['image']:<{col_w[2]}} {o['version']:<{col_w[3]}} {o['latest']}" for o in outdated ) - print(f"\nāš ļø Outdated Docker image versions:\n{header}\n{'-' * 120}\n{rows}\n\nšŸ’” To suppress a warning add above the version: key:\n # nocheck: docker-version") + print( + f"\nāš ļø Outdated Docker image versions:\n{header}\n{'-' * 120}\n{rows}\n\nšŸ’” To suppress a warning add above the version: key:\n # nocheck: docker-version" + ) for o in outdated: _emit_annotation( o["config_path"], From 536c5437295275e2a04725d59a3d3a8cf04186d6 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 02:19:06 +0100 Subject: [PATCH 05/13] chore: update Docker image versions to latest - funkwhale/front + funkwhale/api: 1.4.0 -> 2.0.0 - mattermost-team-edition: 7.10.5 -> 11.5.1 - mediawiki: 1.44 -> 1.45 - mobilizon: 5.2.0 -> 5.2.3 - shopware/composer: 2.7 -> 2.9 - opensearchproject/opensearch: 2.12.0 -> 3.5.0 Skipped: moodle (LTS pin), openproject (major pin) Co-Authored-By: Claude Sonnet 4.6 --- roles/web-app-funkwhale/config/main.yml | 4 ++-- roles/web-app-mattermost/config/main.yml | 2 +- roles/web-app-mediawiki/config/main.yml | 2 +- roles/web-app-mobilizon/config/main.yml | 2 +- roles/web-app-shopware/config/main.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/web-app-funkwhale/config/main.yml b/roles/web-app-funkwhale/config/main.yml index 017ed0628a..98468a6a23 100644 --- a/roles/web-app-funkwhale/config/main.yml +++ b/roles/web-app-funkwhale/config/main.yml @@ -2,11 +2,11 @@ compose: services: funkwhale: image: "funkwhale/front" - version: "1.4.0" + version: "2.0.0" min_storage: "20GB" api: image: "funkwhale/api" - version: "1.4.0" + version: "2.0.0" typesense: image: "typesense/typesense" version: "30.1" diff --git a/roles/web-app-mattermost/config/main.yml b/roles/web-app-mattermost/config/main.yml index 29a92b8587..1489c954c6 100644 --- a/roles/web-app-mattermost/config/main.yml +++ b/roles/web-app-mattermost/config/main.yml @@ -32,7 +32,7 @@ compose: enabled: true mattermost: image: "mattermost/mattermost-team-edition" - version: "7.10.5" + version: "11.5.1" min_storage: "10GB" backup: no_stop_required: true diff --git a/roles/web-app-mediawiki/config/main.yml b/roles/web-app-mediawiki/config/main.yml index 572cbe1047..8b16ad5d99 100644 --- a/roles/web-app-mediawiki/config/main.yml +++ b/roles/web-app-mediawiki/config/main.yml @@ -27,7 +27,7 @@ compose: enabled: true mediawiki: image: mediawiki - version: "1.44" + version: "1.45" min_storage: "8GB" backup: no_stop_required: true diff --git a/roles/web-app-mobilizon/config/main.yml b/roles/web-app-mobilizon/config/main.yml index 533be544e9..3e12ae5037 100644 --- a/roles/web-app-mobilizon/config/main.yml +++ b/roles/web-app-mobilizon/config/main.yml @@ -30,7 +30,7 @@ compose: mobilizon: image: "docker.io/kaihuri/mobilizon" name: "mobilizon" - version: "5.2.0" + version: "5.2.3" min_storage: "5GB" css: enabled: true diff --git a/roles/web-app-shopware/config/main.yml b/roles/web-app-shopware/config/main.yml index de864503a2..37be69c4bb 100644 --- a/roles/web-app-shopware/config/main.yml +++ b/roles/web-app-shopware/config/main.yml @@ -39,7 +39,7 @@ compose: shopware: # Docker Image image: "composer" - version: "2.7" + version: "2.9" # Shopware Release package: name: "shopware/production" @@ -83,7 +83,7 @@ compose: opensearch: enabled: true image: "opensearchproject/opensearch" - version: "2.12.0" + version: "3.5.0" name: "shopware-opensearch" cpus: 1.0 mem_reservation: 2g From 06d3a32747ef6abe1c33c7319638fbd1bb803a27 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 02:21:46 +0100 Subject: [PATCH 06/13] chore: update openproject version 15 -> 17 Co-Authored-By: Claude Sonnet 4.6 --- roles/web-app-openproject/config/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/web-app-openproject/config/main.yml b/roles/web-app-openproject/config/main.yml index 318036624a..f6b95aead4 100644 --- a/roles/web-app-openproject/config/main.yml +++ b/roles/web-app-openproject/config/main.yml @@ -35,7 +35,7 @@ compose: web: name: openproject-web image: openproject/openproject - version: "15" # Update when available. No rolling release implemented + version: "17" backup: no_stop_required: true cpus: "3.0" From f4cc604f7c682b8ae06b54f2aba0284b4eb6d237 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 10:56:58 +0100 Subject: [PATCH 07/13] fix(shopware): pin secure build configuration --- roles/web-app-shopware/config/main.yml | 2 +- .../web-app-shopware/templates/Dockerfile.j2 | 3 +- roles/web-app-shopware/vars/main.yml | 1 + .../test_shopware_build_configuration.py | 42 +++++++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 tests/integration/test_shopware_build_configuration.py diff --git a/roles/web-app-shopware/config/main.yml b/roles/web-app-shopware/config/main.yml index 37be69c4bb..da5c97c313 100644 --- a/roles/web-app-shopware/config/main.yml +++ b/roles/web-app-shopware/config/main.yml @@ -43,7 +43,7 @@ compose: # Shopware Release package: name: "shopware/production" - version: "6.7.3.1" + version: "6.7.8.2" php: image: "ghcr.io/shopware/docker-base" version: "8.3" diff --git a/roles/web-app-shopware/templates/Dockerfile.j2 b/roles/web-app-shopware/templates/Dockerfile.j2 index a9e90980a3..e5cb602f8a 100644 --- a/roles/web-app-shopware/templates/Dockerfile.j2 +++ b/roles/web-app-shopware/templates/Dockerfile.j2 @@ -19,7 +19,8 @@ ARG SHOPWARE_PROD_VERSION="{{ SHOPWARE_PKG_NAME }}:{{ SHOPWARE_PKG_VERSION }}" # 1) Scaffold project without installing dependencies RUN set -eux; \ - composer create-project "${SHOPWARE_PROD_VERSION}" /app --no-install + composer create-project "${SHOPWARE_PROD_VERSION}" /app --no-install; \ + composer config platform.php "{{ SHOPWARE_COMPOSER_PLATFORM_PHP }}" # 2) Install dependencies (ignoring build-time extension checks) + add Redis transport RUN set -eux; \ diff --git a/roles/web-app-shopware/vars/main.yml b/roles/web-app-shopware/vars/main.yml index b41361b7cc..de7bfbeb31 100644 --- a/roles/web-app-shopware/vars/main.yml +++ b/roles/web-app-shopware/vars/main.yml @@ -19,6 +19,7 @@ SHOPWARE_ROOT: "/var/www/html" SHOPWARE_PHP_VERSION: "{{ lookup('config', application_id, 'compose.services.php.version') }}" SHOPWARE_PHP_IMAGE: "{{ lookup('config', application_id, 'compose.services.php.image') }}" +SHOPWARE_COMPOSER_PLATFORM_PHP: "{{ SHOPWARE_PHP_VERSION | regex_replace('^(\\d+\\.\\d+)$', '\\1.0') }}" # Split service container names SHOPWARE_INIT_CONTAINER: "{{ lookup('config', application_id, 'compose.services.init.name') }}" diff --git a/tests/integration/test_shopware_build_configuration.py b/tests/integration/test_shopware_build_configuration.py new file mode 100644 index 0000000000..a60fb92fe8 --- /dev/null +++ b/tests/integration/test_shopware_build_configuration.py @@ -0,0 +1,42 @@ +import unittest +from pathlib import Path + +import yaml + + +def parse_version(version): + return tuple(int(part) for part in version.lstrip("v").split(".")) + + +class TestShopwareBuildConfiguration(unittest.TestCase): + def setUp(self): + self.repo_root = Path(__file__).resolve().parent.parent.parent + self.role_root = self.repo_root / "roles" / "web-app-shopware" + + def test_shopware_package_version_uses_patched_release(self): + config_path = self.role_root / "config" / "main.yml" + config = yaml.safe_load(config_path.read_text("utf-8")) or {} + version = config["compose"]["services"]["shopware"]["package"]["version"] + + self.assertGreaterEqual( + parse_version(version), + (6, 7, 8, 1), + "Shopware 6.7 releases below 6.7.8.1 are blocked by security advisories.", + ) + + def test_builder_pins_composer_platform_php_to_runtime_series(self): + vars_path = self.role_root / "vars" / "main.yml" + dockerfile_path = self.role_root / "templates" / "Dockerfile.j2" + + vars_config = yaml.safe_load(vars_path.read_text("utf-8")) or {} + dockerfile = dockerfile_path.read_text("utf-8") + + self.assertIn("SHOPWARE_COMPOSER_PLATFORM_PHP", vars_config) + self.assertIn( + 'composer config platform.php "{{ SHOPWARE_COMPOSER_PLATFORM_PHP }}"', + dockerfile, + ) + + +if __name__ == "__main__": + unittest.main() From 67f65e30e1fd334c95aa788ac2e5af0e09e92584 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 10:59:21 +0100 Subject: [PATCH 08/13] Added test fail instructions for AGENTS.md --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 837c178ffb..0516e100ae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,6 +45,7 @@ Solve semantic errors in text whenever you find them without explicit order. ## Tests - Write unit, integration and lint tests in the `tests` folder with the python `unittest` framework +- If `make test` fails with `service "infinito" is not running` execute `make up` and restart afterwards `make test` again ### Unit From a40a0b5f9a7188a4adf506c04e0f917d92c5d315 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 10:59:56 +0100 Subject: [PATCH 09/13] Removed unneccessary warning emoji --- tests/integration/test_docker_image_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_docker_image_versions.py b/tests/integration/test_docker_image_versions.py index 8949945973..1f4bb32c64 100644 --- a/tests/integration/test_docker_image_versions.py +++ b/tests/integration/test_docker_image_versions.py @@ -240,7 +240,7 @@ def _emit_annotation( ) -> None: msg = f"{role}/{service}: {image} is at {current}, latest semver tag is {latest}" if os.getenv("GITHUB_ACTIONS") == "true": - print(f"::warning file={config_path},title=āš ļø Outdated Docker image::{msg}") + print(f"::warning file={config_path},title=Outdated Docker image::{msg}") def _emit_unchecked_annotation( From 516bd8a20a1d35c9ee888b1015f23d752e2ebbde Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 13:24:11 +0100 Subject: [PATCH 10/13] docs(agents): relax test requirement for markdown-only changes --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 837c178ffb..cddf60b40e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -41,6 +41,8 @@ Solve semantic errors in text whenever you find them without explicit order. ## Commiting - Verify before every commit with `make test` - If fails execute: `make clean-sudo` and afterwards `make test` again +- `make test` is not required when only `.md` files were changed. +- Commits are allowed only when all tests pass successfully. ## Tests From 50cfa0913433df557df6df1fd5e03d5beb9a3aa1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 14:04:03 +0100 Subject: [PATCH 11/13] docs: improve AGENTS.md regression test wording --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index cddf60b40e..fbf7d6595c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,6 +47,7 @@ Solve semantic errors in text whenever you find them without explicit order. ## Tests - Write unit, integration and lint tests in the `tests` folder with the python `unittest` framework +- You MUST not write regression tests that only check whether source code contains a string ### Unit From 1389ecd2600461ce800496064e78b9ee370aae3b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 15:35:10 +0100 Subject: [PATCH 12/13] Guard empty deploy matrices and ignore JSON docker scan --- .github/workflows/test-deploy-local.yml | 1 + .github/workflows/test-deploy-server.yml | 1 + .github/workflows/test-deploy-universal.yml | 1 + tests/integration/test_no_raw_docker_commands.py | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/test-deploy-local.yml b/.github/workflows/test-deploy-local.yml index 31f64c64f6..cd096e1c2a 100644 --- a/.github/workflows/test-deploy-local.yml +++ b/.github/workflows/test-deploy-local.yml @@ -82,6 +82,7 @@ jobs: deploy: name: šŸš€ Deploy ${{ needs.discover.outputs.test_deploy_type }} app (${{ matrix.app }}) + if: needs.discover.outputs.apps != '' && needs.discover.outputs.apps != '[]' runs-on: ubuntu-latest timeout-minutes: 360 needs: discover diff --git a/.github/workflows/test-deploy-server.yml b/.github/workflows/test-deploy-server.yml index 0c831d0c75..2559444e7e 100644 --- a/.github/workflows/test-deploy-server.yml +++ b/.github/workflows/test-deploy-server.yml @@ -70,6 +70,7 @@ jobs: server: name: 🌐 Deploy ${{ matrix.app }} + if: needs.discover.outputs.apps != '' && needs.discover.outputs.apps != '[]' runs-on: ubuntu-latest timeout-minutes: 360 needs: discover diff --git a/.github/workflows/test-deploy-universal.yml b/.github/workflows/test-deploy-universal.yml index 795fca5ac3..0bbb7e5ed5 100644 --- a/.github/workflows/test-deploy-universal.yml +++ b/.github/workflows/test-deploy-universal.yml @@ -66,6 +66,7 @@ jobs: universal: name: ✨ Deploy ${{ matrix.app }} + if: needs.discover.outputs.apps != '' && needs.discover.outputs.apps != '[]' runs-on: ubuntu-latest timeout-minutes: 360 needs: discover diff --git a/tests/integration/test_no_raw_docker_commands.py b/tests/integration/test_no_raw_docker_commands.py index 404bbedd8c..8b8a60c525 100644 --- a/tests/integration/test_no_raw_docker_commands.py +++ b/tests/integration/test_no_raw_docker_commands.py @@ -21,6 +21,7 @@ class Finding: # Whitelist: ignore these file endings / filenames / path fragments WHITELIST_SUFFIXES: Tuple[str, ...] = ( ".md", + ".json", ".png", ".jpg", ".jpeg", From 3d493192e6f8633c1d6792009b10d70602944f0c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 25 Mar 2026 15:43:52 +0100 Subject: [PATCH 13/13] Add min_storage metadata for invokable services --- roles/svc-db-memcached/config/main.yml | 1 + roles/svc-db-redis/config/main.yml | 1 + roles/web-app-minio/config/main.yml | 1 + roles/web-app-oauth2-proxy/config/main.yml | 1 + roles/web-app-pgadmin/config/main.yml | 1 + roles/web-app-phpldapadmin/config/main.yml | 1 + roles/web-app-phpmyadmin/config/main.yml | 1 + roles/web-app-pixelfed/config/main.yml | 1 + roles/web-app-pretix/config/main.yml | 1 + roles/web-app-roulette-wheel/config/main.yml | 1 + roles/web-app-shopware/config/main.yml | 1 + roles/web-app-snipe-it/config/main.yml | 1 + roles/web-app-sphinx/config/main.yml | 1 + roles/web-app-suitecrm/config/main.yml | 1 + roles/web-app-taiga/config/main.yml | 1 + roles/web-app-wordpress/config/main.yml | 1 + roles/web-app-xwiki/config/main.yml | 1 + roles/web-app-yourls/config/main.yml | 1 + roles/web-svc-collabora/config/main.yml | 1 + roles/web-svc-coturn/config/main.yml | 1 + roles/web-svc-libretranslate/config/main.yml | 1 + roles/web-svc-logout/config/main.yml | 1 + roles/web-svc-onlyoffice/config/main.yml | 1 + roles/web-svc-simpleicons/config/main.yml | 1 + 24 files changed, 24 insertions(+) diff --git a/roles/svc-db-memcached/config/main.yml b/roles/svc-db-memcached/config/main.yml index 2ad1178e12..27f080440c 100644 --- a/roles/svc-db-memcached/config/main.yml +++ b/roles/svc-db-memcached/config/main.yml @@ -3,5 +3,6 @@ compose: memcached: image: memcached version: latest + min_storage: "1GB" backup: disabled: true diff --git a/roles/svc-db-redis/config/main.yml b/roles/svc-db-redis/config/main.yml index 690646641d..9a982c408a 100644 --- a/roles/svc-db-redis/config/main.yml +++ b/roles/svc-db-redis/config/main.yml @@ -3,5 +3,6 @@ compose: redis: image: redis version: alpine + min_storage: "1GB" backup: disabled: true diff --git a/roles/web-app-minio/config/main.yml b/roles/web-app-minio/config/main.yml index e8fbb8577f..a1e1139bd1 100644 --- a/roles/web-app-minio/config/main.yml +++ b/roles/web-app-minio/config/main.yml @@ -31,6 +31,7 @@ compose: image: quay.io/minio/minio version: latest name: minio + min_storage: "20GB" cpus: "2.0" mem_reservation: "2g" mem_limit: "4g" diff --git a/roles/web-app-oauth2-proxy/config/main.yml b/roles/web-app-oauth2-proxy/config/main.yml index 0450ebd47c..8d20dfbf1e 100644 --- a/roles/web-app-oauth2-proxy/config/main.yml +++ b/roles/web-app-oauth2-proxy/config/main.yml @@ -19,3 +19,4 @@ compose: oauth2-proxy: image: "quay.io/oauth2-proxy/oauth2-proxy" version: "latest" + min_storage: "1GB" diff --git a/roles/web-app-pgadmin/config/main.yml b/roles/web-app-pgadmin/config/main.yml index 57fd99d7d4..ef61ca56ff 100644 --- a/roles/web-app-pgadmin/config/main.yml +++ b/roles/web-app-pgadmin/config/main.yml @@ -17,6 +17,7 @@ compose: pgadmin: image: "dpage/pgadmin4" version: "latest" + min_storage: "1GB" server_mode: False # If true then the preconfigured database file is loaded. Recommended False. True is a security risk. master_password_required: True # Master password is required. Recommended True. False is a security risk. logout: diff --git a/roles/web-app-phpldapadmin/config/main.yml b/roles/web-app-phpldapadmin/config/main.yml index 344c6aa685..2dbd35afba 100644 --- a/roles/web-app-phpldapadmin/config/main.yml +++ b/roles/web-app-phpldapadmin/config/main.yml @@ -18,6 +18,7 @@ compose: phpldapadmin: image: "phpldapadmin/phpldapadmin" version: "latest" + min_storage: "1GB" oauth2: enabled: true origin: diff --git a/roles/web-app-phpmyadmin/config/main.yml b/roles/web-app-phpmyadmin/config/main.yml index cf2b4429c1..6b48a808bc 100644 --- a/roles/web-app-phpmyadmin/config/main.yml +++ b/roles/web-app-phpmyadmin/config/main.yml @@ -26,6 +26,7 @@ compose: version: "latest" # Use the latest phpmyadmin version name: "phpmyadmin" image: "phpmyadmin/phpmyadmin" + min_storage: "1GB" # This is a high security risk. Just activate this option if you know what you're doing autologin: false oauth2: diff --git a/roles/web-app-pixelfed/config/main.yml b/roles/web-app-pixelfed/config/main.yml index 77b21e4430..90aaf969ef 100644 --- a/roles/web-app-pixelfed/config/main.yml +++ b/roles/web-app-pixelfed/config/main.yml @@ -43,6 +43,7 @@ compose: image: "zknt/pixelfed" version: "latest" name: "pixelfed" + min_storage: "15GB" backup: no_stop_required: true cpus: 0.75 diff --git a/roles/web-app-pretix/config/main.yml b/roles/web-app-pretix/config/main.yml index 06307b64d9..bd649ffc75 100644 --- a/roles/web-app-pretix/config/main.yml +++ b/roles/web-app-pretix/config/main.yml @@ -23,6 +23,7 @@ compose: image: pretix/standalone version: stable name: pretix + min_storage: "10GB" backup: no_stop_required: true cpus: "2.0" diff --git a/roles/web-app-roulette-wheel/config/main.yml b/roles/web-app-roulette-wheel/config/main.yml index af9503c607..975ba90a29 100644 --- a/roles/web-app-roulette-wheel/config/main.yml +++ b/roles/web-app-roulette-wheel/config/main.yml @@ -16,6 +16,7 @@ compose: css: enabled: true roulette-wheel: + min_storage: "1GB" cpus: 0.5 mem_reservation: 126m mem_limit: 265m diff --git a/roles/web-app-shopware/config/main.yml b/roles/web-app-shopware/config/main.yml index da5c97c313..35718edf66 100644 --- a/roles/web-app-shopware/config/main.yml +++ b/roles/web-app-shopware/config/main.yml @@ -40,6 +40,7 @@ compose: # Docker Image image: "composer" version: "2.9" + min_storage: "20GB" # Shopware Release package: name: "shopware/production" diff --git a/roles/web-app-snipe-it/config/main.yml b/roles/web-app-snipe-it/config/main.yml index f9019bdd87..e083228c17 100644 --- a/roles/web-app-snipe-it/config/main.yml +++ b/roles/web-app-snipe-it/config/main.yml @@ -39,6 +39,7 @@ compose: version: "latest-alpine" name: "snipe-it" image: "snipe/snipe-it" + min_storage: "8GB" cpus: "1.0" mem_reservation: "256m" mem_limit: "2g" diff --git a/roles/web-app-sphinx/config/main.yml b/roles/web-app-sphinx/config/main.yml index 76ffc2a5e2..4310cdda11 100644 --- a/roles/web-app-sphinx/config/main.yml +++ b/roles/web-app-sphinx/config/main.yml @@ -27,6 +27,7 @@ compose: sphinx: image: "ghcr.io/kevinveenbirkenbach/infinito-sphinx" version: "latest" + min_storage: "1GB" backup: no_stop_required: true port: 8000 diff --git a/roles/web-app-suitecrm/config/main.yml b/roles/web-app-suitecrm/config/main.yml index f32990e78a..3b50e303c0 100644 --- a/roles/web-app-suitecrm/config/main.yml +++ b/roles/web-app-suitecrm/config/main.yml @@ -37,6 +37,7 @@ compose: # Git tag from https://github.com/SuiteCRM/SuiteCRM-Core/releases app_version: "8.9.1" name: "suitecrm" + min_storage: "10GB" cpus: 1.5 mem_reservation: 1.2g mem_limit: 2g diff --git a/roles/web-app-taiga/config/main.yml b/roles/web-app-taiga/config/main.yml index b27ccb9a0a..6b273a109d 100644 --- a/roles/web-app-taiga/config/main.yml +++ b/roles/web-app-taiga/config/main.yml @@ -23,6 +23,7 @@ compose: enabled: true taiga: version: "latest" + min_storage: "10GB" cpus: "1.0" mem_reservation: "1g" mem_limit: "1.5g" diff --git a/roles/web-app-wordpress/config/main.yml b/roles/web-app-wordpress/config/main.yml index 36f48d6b28..f4d6486748 100644 --- a/roles/web-app-wordpress/config/main.yml +++ b/roles/web-app-wordpress/config/main.yml @@ -55,6 +55,7 @@ compose: version: latest image: wordpress name: wordpress + min_storage: "8GB" backup: no_stop_required: true cpus: 1 diff --git a/roles/web-app-xwiki/config/main.yml b/roles/web-app-xwiki/config/main.yml index 579fc55404..5dda68f948 100644 --- a/roles/web-app-xwiki/config/main.yml +++ b/roles/web-app-xwiki/config/main.yml @@ -27,6 +27,7 @@ compose: image: xwiki version: lts-postgres-tomcat name: xwiki + min_storage: "10GB" backup: no_stop_required: true cpus: 1.0 diff --git a/roles/web-app-yourls/config/main.yml b/roles/web-app-yourls/config/main.yml index 32dd05069a..b8a392d14a 100644 --- a/roles/web-app-yourls/config/main.yml +++ b/roles/web-app-yourls/config/main.yml @@ -32,6 +32,7 @@ compose: version: "latest" name: "yourls" image: "yourls" + min_storage: "1GB" oauth2: enabled: true origin: diff --git a/roles/web-svc-collabora/config/main.yml b/roles/web-svc-collabora/config/main.yml index b95addf9d7..321f6c96c2 100644 --- a/roles/web-svc-collabora/config/main.yml +++ b/roles/web-svc-collabora/config/main.yml @@ -30,6 +30,7 @@ compose: image: collabora/code version: latest name: collabora + min_storage: "10GB" cpus: 2 mem_reservation: 1g mem_limit: 2g diff --git a/roles/web-svc-coturn/config/main.yml b/roles/web-svc-coturn/config/main.yml index e62952af49..1b82d79f80 100644 --- a/roles/web-svc-coturn/config/main.yml +++ b/roles/web-svc-coturn/config/main.yml @@ -11,6 +11,7 @@ compose: coturn: image: "coturn/coturn" version: "latest" + min_storage: "1GB" user_auth_enabled: false cpus: 1.0 mem_reservation: 512m diff --git a/roles/web-svc-libretranslate/config/main.yml b/roles/web-svc-libretranslate/config/main.yml index d6c9358880..94ab50dd41 100644 --- a/roles/web-svc-libretranslate/config/main.yml +++ b/roles/web-svc-libretranslate/config/main.yml @@ -5,6 +5,7 @@ compose: libretranslate: image: libretranslate/libretranslate version: latest + min_storage: "5GB" oauth2: enabled: false logout: diff --git a/roles/web-svc-logout/config/main.yml b/roles/web-svc-logout/config/main.yml index e5603c4b90..634fe0b186 100644 --- a/roles/web-svc-logout/config/main.yml +++ b/roles/web-svc-logout/config/main.yml @@ -28,6 +28,7 @@ compose: image: "ghcr.io/kevinveenbirkenbach/universal-logout" version: "latest" name: "logout" + min_storage: "1GB" cpus: 0.2 mem_reservation: "256m" mem_limit: "512m" diff --git a/roles/web-svc-onlyoffice/config/main.yml b/roles/web-svc-onlyoffice/config/main.yml index 8da1f1f31f..7b6b26c500 100644 --- a/roles/web-svc-onlyoffice/config/main.yml +++ b/roles/web-svc-onlyoffice/config/main.yml @@ -45,6 +45,7 @@ compose: image: "onlyoffice/documentserver" version: "latest" name: "onlyoffice" + min_storage: "20GB" cpus: 2 mem_reservation: "1g" # Raised due to failures in CI pipeline (Good luck approach) diff --git a/roles/web-svc-simpleicons/config/main.yml b/roles/web-svc-simpleicons/config/main.yml index c76c5ab086..4c90e4095e 100644 --- a/roles/web-svc-simpleicons/config/main.yml +++ b/roles/web-svc-simpleicons/config/main.yml @@ -22,6 +22,7 @@ compose: simpleicons: image: node version: latest + min_storage: "1GB" cpus: 0.5 mem_reservation: 126m mem_limit: 265m