Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gunicorn and uvicorn in Docker production image #766

Merged

Conversation

lunkwill42
Copy link
Member

gunicorn+uvicorn should be more suitable for production use. uvicorn is used to provide an ASGI interface so the Argus API websockets implementation will work (except that it doesn't work really well in its current implementation)

This is closer to our current production deployment image, which we hope to replace with our official image from this repo.

@lunkwill42 lunkwill42 self-assigned this Apr 17, 2024
Copy link

github-actions bot commented Apr 17, 2024

Test results

       7 files     511 suites   19m 45s ⏱️
   409 tests    408 ✔️ 1 💤 0
2 863 runs  2 856 ✔️ 7 💤 0

Results for commit 583dee2.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.99%. Comparing base (8df8a95) to head (583dee2).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #766      +/-   ##
==========================================
+ Coverage   78.96%   78.99%   +0.02%     
==========================================
  Files          74       74              
  Lines        3628     3637       +9     
==========================================
+ Hits         2865     2873       +8     
- Misses        763      764       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This way, the container commadn arguments can be passed directly to
gunicorn to modify its behavior, such as adding more workers or changing
the log level.
gunicorn+uvicorn should be more suitable for production use.  uvicorn is
used to provide an ASGI interface so the Argus API websockets
implementation will work (except that it doesn't work really well in its
current implementation)
@hmpf hmpf force-pushed the docker/use-gunicorn-and-uvicorn-in-docker branch from 583dee2 to 8beab5c Compare April 23, 2024 09:21
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hmpf hmpf merged commit 87d1e6c into Uninett:master Apr 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants