From d1cd6b151e5522281ea29e45a91244cbccd8ec25 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:22:23 +1100 Subject: [PATCH] Add SENTRY_RELEASE environment variable to relevant dockerfiles (#3389) --- api/Dockerfile | 1 + frontend/Dockerfile | 3 +++ ingestion_server/Dockerfile | 3 +++ 3 files changed, 7 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index d078a61fb94..ac66944faa8 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -106,6 +106,7 @@ RUN env \ # Add the release version to the docker container ARG SEMANTIC_VERSION ENV SEMANTIC_VERSION=$SEMANTIC_VERSION +ENV SENTRY_RELEASE=$SEMANTIC_VERSION # Exposes # - 8000: Dev server for API Django app diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5c575e939f6..5006fadad7d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -71,6 +71,9 @@ COPY --from=builder --chown=node:node /home/node/frontend ./frontend/ WORKDIR /home/node/frontend/ +ARG SEMANTIC_VERSION +ENV SENTRY_RELEASE=$SEMANTIC_VERSION + # set app serving to permissive / assigned ENV NUXT_HOST=0.0.0.0 diff --git a/ingestion_server/Dockerfile b/ingestion_server/Dockerfile index 132d8066e20..8a876c3e2e0 100644 --- a/ingestion_server/Dockerfile +++ b/ingestion_server/Dockerfile @@ -78,4 +78,7 @@ COPY --chown=ingestionu . /ingestion_server/ # - 8002: Gunicorn server for `indexer_worker` Falcon app EXPOSE 8001 8002 +ARG SEMANTIC_VERSION +ENV SENTRY_RELEASE=$SEMANTIC_VERSION + CMD ["gunicorn", "--bind", "0.0.0.0:8001", "api:api"]