Skip to content

Commit 094d8e3

Browse files
authored
fix(install): Read and set .env in install.sh (#600)
Fixes #597.
1 parent 86864d0 commit 094d8e3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

install.sh

Lines changed: 4 additions & 6 deletions
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

@@ -171,12 +173,8 @@ echo ""
171173
# redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix.
172174
$dc pull -q --ignore-pull-failures 2>&1 | grep -v -- -onpremise-local || true
173175

174-
if [ -z "$SENTRY_IMAGE" ]; then
175-
docker pull getsentry/sentry:${SENTRY_VERSION:-latest}
176-
else
177-
# We may not have the set image on the repo (local images) so allow fails
178-
docker pull $SENTRY_IMAGE || true;
179-
fi
176+
# We may not have the set image on the repo (local images) so allow fails
177+
docker pull $SENTRY_IMAGE || true;
180178

181179
echo ""
182180
echo "Building and tagging Docker images..."

0 commit comments

Comments
 (0)