From 3e7df7be17a07dd82ee7496df5dd736ab447baf8 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Mon, 25 May 2020 01:11:19 +0300 Subject: [PATCH] fix(install): Skip pull when SENTRY_IMAGE is set (#514) This also uses SENTRY_VERSION instead of hard-coding `:latest` as the tag when pulling (follow up to #509). --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c0419b1..38336ca 100755 --- a/install.sh +++ b/install.sh @@ -153,7 +153,12 @@ echo "" # shows a 404 error on the console which is confusing and unnecessary. To overcome this, we add the stderr>stdout # redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix. $dc pull -q --ignore-pull-failures 2>&1 | grep -v -- -onpremise-local || true -docker pull ${SENTRY_IMAGE:-getsentry/sentry:latest} + +if [ -z "$SENTRY_IMAGE" ]; then + docker pull getsentry/sentry:${SENTRY_VERSION:-latest} +else + echo "SENTRY_IMAGE is explicitly set, skipped pulling." +fi echo "" echo "Building and tagging Docker images..."