feat(sentry): add stage with sentry_sdk[flask] to dockerfile - #219
Open
VincentCauchois wants to merge 2 commits into
Open
feat(sentry): add stage with sentry_sdk[flask] to dockerfile#219VincentCauchois wants to merge 2 commits into
sentry_sdk[flask] to dockerfile#219VincentCauchois wants to merge 2 commits into
Conversation
Allow to use the command `pip install -e .['sentry']` to add the `sentry-sdk` library for Flask.
VincentCauchois
force-pushed
the
feat/add-sentry-sdk-flask-library
branch
from
May 29, 2024 14:31
ecea291 to
097daaa
Compare
Contributor
|
C'est pas suffisant pour activer sentry ? |
jacquesfize
reviewed
Mar 4, 2025
Comment on lines
+109
to
+121
| FROM app-${DEPS} AS prod-with-sentry | ||
|
|
||
| RUN --mount=type=cache,target=/root/.cache \ | ||
| pip install sentry_sdk[flask] | ||
|
|
||
| ENV FLASK_APP=app.app:create_app | ||
| ENV PYTHONPATH=/dist/config/ | ||
| ENV USERSHUB_SETTINGS=config.py | ||
| ENV USERSHUB_STATIC_FOLDER=/dist/static | ||
|
|
||
| EXPOSE 5001 | ||
|
|
||
| CMD ["gunicorn", "app.app:create_app()", "--bind=0.0.0.0:5001", "--access-logfile=-", "--error-logfile=-", "--reload", "--reload-extra-file=config/config.py"] |
Contributor
There was a problem hiding this comment.
Suggested change
| FROM app-${DEPS} AS prod-with-sentry | |
| RUN --mount=type=cache,target=/root/.cache \ | |
| pip install sentry_sdk[flask] | |
| ENV FLASK_APP=app.app:create_app | |
| ENV PYTHONPATH=/dist/config/ | |
| ENV USERSHUB_SETTINGS=config.py | |
| ENV USERSHUB_STATIC_FOLDER=/dist/static | |
| EXPOSE 5001 | |
| CMD ["gunicorn", "app.app:create_app()", "--bind=0.0.0.0:5001", "--access-logfile=-", "--error-logfile=-", "--reload", "--reload-extra-file=config/config.py"] | |
| FROM prod AS prod-with-sentry | |
| RUN --mount=type=cache,target=/root/.cache \ | |
| pip install sentry_sdk[flask] | |
Contributor
|
@VincentCauchois toujours un besoin ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.