From b2076eaeeda51a4555314ada0d47717a449673c8 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Fri, 24 Apr 2020 15:13:38 +0300 Subject: [PATCH] ref(install): Reduce noise on docker-compose pull (#442) --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 56de703..3accea6 100755 --- a/install.sh +++ b/install.sh @@ -101,12 +101,19 @@ if grep -xq "system.secret-key: '!!changeme!!'" $SENTRY_CONFIG_YML ; then echo "Secret key written to $SENTRY_CONFIG_YML" fi +echo "" +echo "Fetching and updating Docker images..." +echo "" +# We tag locally built images with an '-onpremise-local' suffix. docker-compose pull tries to pull these too and +# 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} + echo "" echo "Building and tagging Docker images..." echo "" # Build the sentry onpremise image first as it is needed for the cron image -$dc pull --ignore-pull-failures -docker pull ${SENTRY_IMAGE:-getsentry/sentry:latest} $dc build --force-rm web $dc build --force-rm --parallel echo ""