From b51385d5f1a62f5b2cb8845b927a8f4fc2cebcf5 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 16 Apr 2017 19:46:03 -0700 Subject: [PATCH] scope script: Allow 'user' part of image name to be given by DOCKERHUB_USER env var This allows alternate scope images to be used, and mirrors the option available for weave net. --- scope | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scope b/scope index 91149e0dc..475cea060 100755 --- a/scope +++ b/scope @@ -10,7 +10,8 @@ else IMAGE_VERSION="$SCRIPT_VERSION" fi IMAGE_VERSION=${VERSION:-$IMAGE_VERSION} -SCOPE_IMAGE_NAME=weaveworks/scope +DOCKERHUB_USER=${DOCKERHUB_USER:-weaveworks} +SCOPE_IMAGE_NAME="$DOCKERHUB_USER/scope" SCOPE_IMAGE="$SCOPE_IMAGE_NAME:$IMAGE_VERSION" # Careful: it's easy to operate on (e.g. stop) the wrong scope instance # when SCOPE{_APP,}_CONTAINER_NAME values differ between runs. Handle