From 84d7d77d83ee05e7d56848733e4a56abbb9a2b3f Mon Sep 17 00:00:00 2001 From: "Mark S. Lewis" Date: Fri, 21 Feb 2025 11:09:53 +0000 Subject: [PATCH] Fix install script for 3.0.0-preview Docker images The install script incorrectly selected ghcr.io as the repository to pull Fabric 3.0.0-preview Docker images. This change removes trailing pre-release or metadata identifiers from Docker image tags before looking up the default Docker registry for a given component version. This means that 3.0.0-preview is treated the same as 3.0.0. Signed-off-by: Mark S. Lewis --- scripts/install-fabric.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install-fabric.sh b/scripts/install-fabric.sh index 8852e2226b1..22a2712f923 100755 --- a/scripts/install-fabric.sh +++ b/scripts/install-fabric.sh @@ -178,6 +178,9 @@ dockerComponentRegistry() { local component="$1" local image_version="$2" + # Remove trailing pre-release or metadata identifiers + image_version="${image_version%%[-+]*}" + case "${component}" in ca) echo -n "$(dockerCARegistry "${image_version}")/${HYPERLEDGER_NAMESPACE}"