self-hosted/install/build-docker-images.sh
Ethan Smith 3a07ff4884
Upload end of log as breadcrumbs, use exceptions and stacktrace (#1775)
In this PR, we change the send-event function to write out more information into the envelope we send via sentry-cli, particularly adding breadcrumbs with the end of the log and giving the stack trace in a format Sentry self-hosted can understand.

Fixes getsentry/team-ospo#54 and getsentry/team-ospo#53
Example issue with this formatting: https://self-hosted.getsentry.net/organizations/self-hosted/issues/227/?query=is%3Aunresolved
2022-10-26 14:15:32 -07:00

14 lines
669 B
Bash

echo "${_group}Building and tagging Docker images ..."
echo ""
# Build any service that provides the image sentry-self-hosted-local first,
# as it is used as the base image for sentry-cleanup-self-hosted-local.
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm web
$dc build --build-arg "http_proxy=${http_proxy:-}" --build-arg "https_proxy=${https_proxy:-}" --build-arg "no_proxy=${no_proxy:-}" --force-rm
# Used in error-handling.sh for error envelope payloads
docker build -t sentry-self-hosted-jq-local $basedir/jq
echo ""
echo "Docker images built."
echo "${_endgroup}"