2
0

Add volumed-out config directory for symbolicator. (#566)

I would like to be able to customize the configuration for my Sentry 10 symbolicator instance, which this change allows me to easily do.

See related: https://github.com/getsentry/symbolicator/issues/245

Co-authored-by: Burak Yigit Kaya <ben@byk.im>
This commit is contained in:
Mike Purvis 2020-07-08 13:42:33 -04:00 committed by GitHub
parent a01d013617
commit 96889a6175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 2 deletions

1
.gitignore vendored
View File

@ -79,3 +79,4 @@ sentry/config.yml
sentry/*.bak sentry/*.bak
sentry/requirements.txt sentry/requirements.txt
relay/credentials.json relay/credentials.json
symbolicator/config.yml

View File

@ -136,7 +136,11 @@ services:
image: 'getsentry/symbolicator:$SYMBOLICATOR_VERSION' image: 'getsentry/symbolicator:$SYMBOLICATOR_VERSION'
volumes: volumes:
- 'sentry-symbolicator:/data' - 'sentry-symbolicator:/data'
command: run - type: bind
read_only: true
source: ./symbolicator
target: /etc/symbolicator
command: run -c /etc/symbolicator/config.yml
symbolicator-cleanup: symbolicator-cleanup:
<< : *restart_policy << : *restart_policy
image: symbolicator-cleanup-onpremise-local image: symbolicator-cleanup-onpremise-local

View File

@ -14,6 +14,7 @@ MIN_RAM=2400 # MB
SENTRY_CONFIG_PY='sentry/sentry.conf.py' SENTRY_CONFIG_PY='sentry/sentry.conf.py'
SENTRY_CONFIG_YML='sentry/config.yml' SENTRY_CONFIG_YML='sentry/config.yml'
SYMBOLICATOR_CONFIG_YML='symbolicator/config.yml'
RELAY_CONFIG_YML='relay/config.yml' RELAY_CONFIG_YML='relay/config.yml'
RELAY_CREDENTIALS_JSON='relay/credentials.json' RELAY_CREDENTIALS_JSON='relay/credentials.json'
SENTRY_EXTRA_REQUIREMENTS='sentry/requirements.txt' SENTRY_EXTRA_REQUIREMENTS='sentry/requirements.txt'
@ -95,6 +96,7 @@ echo ""
ensure_file_from_example $SENTRY_CONFIG_PY ensure_file_from_example $SENTRY_CONFIG_PY
ensure_file_from_example $SENTRY_CONFIG_YML ensure_file_from_example $SENTRY_CONFIG_YML
ensure_file_from_example $SENTRY_EXTRA_REQUIREMENTS ensure_file_from_example $SENTRY_EXTRA_REQUIREMENTS
ensure_file_from_example $SYMBOLICATOR_CONFIG_YML
if grep -xq "system.secret-key: '!!changeme!!'" $SENTRY_CONFIG_YML ; then if grep -xq "system.secret-key: '!!changeme!!'" $SENTRY_CONFIG_YML ; then
echo "" echo ""

View File

@ -0,0 +1,8 @@
# See: https://getsentry.github.io/symbolicator/#configuration
cache_dir: "/data"
bind: "0.0.0.0:3021"
logging:
level: "warn"
metrics:
statsd: null
sentry_dsn: null # TODO: Automatically fill this with the internal project DSN