From 2dca6cf0df0a84aef86acd09ff86c3006054d38a Mon Sep 17 00:00:00 2001 From: gadgethd <111318106+gadgethd@users.noreply.github.com> Date: Sun, 2 Aug 2026 17:51:33 +0100 Subject: [PATCH] fix: mount live data in compatibility probe --- scripts/replace-container.sh | 1 + scripts/test-replace-container.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/scripts/replace-container.sh b/scripts/replace-container.sh index 821c993..0f360c7 100755 --- a/scripts/replace-container.sh +++ b/scripts/replace-container.sh @@ -280,6 +280,7 @@ docker run -d \ --name "$compat_name" \ --network "$network_name" \ --env-file "$compat_env" \ + --volumes-from "$current_backend_id:ro" \ -e MQTT_INGEST_ENABLED=false \ -e OWNER_AUTHORIZATION_MODE=shadow \ -e OWNER_ACL_MODE=shadow \ diff --git a/scripts/test-replace-container.sh b/scripts/test-replace-container.sh index eca2838..ac2af8a 100755 --- a/scripts/test-replace-container.sh +++ b/scripts/test-replace-container.sh @@ -259,6 +259,9 @@ run_case() { "${test_root}/docker.log" || true )" test "$up_count" -eq "$expected_up_count" + grep -Eq -- \ + '^run .* --volumes-from current-backend:ro( |$)' \ + "${test_root}/docker.log" if [ "$signature_mode" = "keyless" ]; then grep -q -- '--certificate-identity-regexp' "${test_root}/cosign.log" grep -q -- '--certificate-oidc-issuer' "${test_root}/cosign.log"