2
0

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`.
This commit is contained in:
Burak Yigit Kaya 2020-05-23 06:24:44 +03:00 committed by GitHub
parent 9f39e3cea1
commit e8d8cda688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

1
.env
View File

@ -1,2 +1,3 @@
COMPOSE_PROJECT_NAME=sentry_onpremise COMPOSE_PROJECT_NAME=sentry_onpremise
SENTRY_EVENT_RETENTION_DAYS=90 SENTRY_EVENT_RETENTION_DAYS=90
SENTRY_VERSION=latest

View File

@ -7,6 +7,7 @@ x-sentry-defaults: &sentry_defaults
context: ./sentry context: ./sentry
args: args:
- SENTRY_IMAGE - SENTRY_IMAGE
- SENTRY_VERSION
image: sentry-onpremise-local image: sentry-onpremise-local
depends_on: depends_on:
- redis - redis
@ -31,7 +32,7 @@ x-snuba-defaults: &snuba_defaults
- redis - redis
- clickhouse - clickhouse
- kafka - kafka
image: 'getsentry/snuba:latest' image: 'getsentry/snuba:$SENTRY_VERSION'
environment: environment:
SNUBA_SETTINGS: docker SNUBA_SETTINGS: docker
CLICKHOUSE_HOST: clickhouse CLICKHOUSE_HOST: clickhouse
@ -179,7 +180,7 @@ services:
- relay - relay
relay: relay:
<< : *restart_policy << : *restart_policy
image: "getsentry/relay:latest" image: "getsentry/relay:$SENTRY_VERSION"
volumes: volumes:
- type: bind - type: bind
read_only: true read_only: true

View File

@ -1,5 +1,6 @@
ARG SENTRY_VERSION=latest
ARG SENTRY_IMAGE ARG SENTRY_IMAGE
FROM ${SENTRY_IMAGE:-getsentry/sentry:latest} FROM ${SENTRY_IMAGE:-getsentry/sentry:$SENTRY_VERSION}
COPY . /usr/src/sentry COPY . /usr/src/sentry