mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
fix(vroom): Explicitly set PROFILES_DIR for upcoming change (#3759)
PROFILES_DIR was defaulting to `/var/lib/sentry-profiles` which requires root access. When Vroom image decided to go with non-root default user, this started causing permission issues. Now the image is being refactored and it will not use `/var/lib/sentry-profiles` as the default path so we need to explicitly pass it.
This commit is contained in:
parent
66c057b4e2
commit
e07445d6be
2
.env
2
.env
@ -14,7 +14,7 @@ SNUBA_IMAGE=getsentry/snuba:nightly
|
||||
RELAY_IMAGE=getsentry/relay:nightly
|
||||
SYMBOLICATOR_IMAGE=getsentry/symbolicator:nightly
|
||||
TASKBROKER_IMAGE=getsentry/taskbroker:nightly
|
||||
VROOM_IMAGE=getsentry/vroom:nightly
|
||||
VROOM_IMAGE=getsentry/vroom:a8e9e04
|
||||
HEALTHCHECK_INTERVAL=30s
|
||||
HEALTHCHECK_TIMEOUT=1m30s
|
||||
HEALTHCHECK_RETRIES=10
|
||||
|
||||
@ -511,7 +511,7 @@ services:
|
||||
environment:
|
||||
SENTRY_KAFKA_BROKERS_PROFILING: "kafka:9092"
|
||||
SENTRY_KAFKA_BROKERS_OCCURRENCES: "kafka:9092"
|
||||
SENTRY_BUCKET_PROFILES: file://localhost//var/lib/sentry-profiles
|
||||
PROFILES_DIR: "/var/lib/sentry-profiles"
|
||||
SENTRY_SNUBA_HOST: "http://snuba-api:1218"
|
||||
volumes:
|
||||
- sentry-vroom:/var/lib/sentry-profiles
|
||||
@ -529,10 +529,11 @@ services:
|
||||
BASE_IMAGE: "$VROOM_IMAGE"
|
||||
entrypoint: "/entrypoint.sh"
|
||||
environment:
|
||||
PROFILES_DIR: "/var/lib/sentry-profiles"
|
||||
# Leaving the value empty to just pass whatever is set
|
||||
# on the host system (or in the .env file)
|
||||
SENTRY_EVENT_RETENTION_DAYS:
|
||||
command: '"0 0 * * * find /var/lib/sentry-profiles -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
|
||||
command: '"0 0 * * * find $PROFILES_DIR -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
|
||||
volumes:
|
||||
- sentry-vroom:/var/lib/sentry-profiles
|
||||
profiles:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user