mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
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.
This commit is contained in:
3
scope
3
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
|
||||
|
||||
Reference in New Issue
Block a user