Skip to content

Commit 66a1b46

Browse files
committed
fix(install): Read and set .env in install.sh (#600)
Fixes #597.
1 parent 12cc9f7 commit 66a1b46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
source <(grep -v '^#' .env | sed -E 's|^(.+)=(.*)$|: ${\1=\2}; export \1|g')
5+
46
dc="docker-compose --no-ansi"
57
dcr="$dc run --rm"
68

@@ -108,7 +110,9 @@ echo ""
108110
# shows a 404 error on the console which is confusing and unnecessary. To overcome this, we add the stderr>stdout
109111
# redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix.
110112
$dc pull -q --ignore-pull-failures 2>&1 | grep -v -- -onpremise-local || true
111-
docker pull ${SENTRY_IMAGE:-getsentry/sentry:latest}
113+
114+
# We may not have the set image on the repo (local images) so allow fails
115+
docker pull $SENTRY_IMAGE || true;
112116

113117
echo ""
114118
echo "Building and tagging Docker images..."

0 commit comments

Comments
 (0)