Skip to content

Commit 80938b4

Browse files
committed
feat(versioning): Add SENTRY_VERSION env var for sentry, snuba, relay (#509)
This is in preparation for the upcoming CalVer transition. Introduces a general `$SENTRY_VERSION` env variable, defaulting to `latest`.
1 parent b726091 commit 80938b4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
COMPOSE_PROJECT_NAME=sentry_onpremise
22
SENTRY_EVENT_RETENTION_DAYS=90
3+
SENTRY_VERSION=latest

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ x-sentry-defaults: &sentry_defaults
77
context: ./sentry
88
args:
99
- SENTRY_IMAGE
10+
- SENTRY_VERSION
1011
image: sentry-onpremise-local
1112
depends_on:
1213
- redis
@@ -29,7 +30,7 @@ x-snuba-defaults: &snuba_defaults
2930
- redis
3031
- clickhouse
3132
- kafka
32-
image: 'getsentry/snuba:latest'
33+
image: 'getsentry/snuba:$SENTRY_VERSION'
3334
environment:
3435
SNUBA_SETTINGS: docker
3536
CLICKHOUSE_HOST: clickhouse

sentry/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
ARG SENTRY_VERSION=latest
12
ARG SENTRY_IMAGE
2-
FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
3+
FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
34

45
WORKDIR /usr/src/sentry
56

0 commit comments

Comments
 (0)