From 094d8e38a3decb530e3231969bd1f152ca9f0e0a Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Fri, 17 Jul 2020 15:29:55 +0300 Subject: [PATCH] fix(install): Read and set .env in install.sh (#600) Fixes #597. --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index d391b26..9ccef09 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e +source <(grep -v '^#' .env | sed -E 's|^(.+)=(.*)$|: ${\1=\2}; export \1|g') + dc="docker-compose --no-ansi" dcr="$dc run --rm" @@ -171,12 +173,8 @@ echo "" # 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 -if [ -z "$SENTRY_IMAGE" ]; then - docker pull getsentry/sentry:${SENTRY_VERSION:-latest} -else - # We may not have the set image on the repo (local images) so allow fails - docker pull $SENTRY_IMAGE || true; -fi +# We may not have the set image on the repo (local images) so allow fails +docker pull $SENTRY_IMAGE || true; echo "" echo "Building and tagging Docker images..."