Dockerfile: add WSGIApplicationGroup %{GLOBAL} for C libraries

Apparently we might need this for some C code extensions:

> Forcing a WSGI application to run within the first interpreter can be
> necessary when a third party C extension module for Python has used
> the simplified threading API for manipulation of the Python GIL and
> thus will not run correctly within any additional sub interpreters
> created by Python.

https://www.modwsgi.org/en/latest/configuration-directives/WSGIApplicationGroup.html

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2024-12-25 10:31:20 +01:00
parent 05f7ad4f6b
commit d24114b0fe

View file

@ -16,6 +16,7 @@
SetEnv LXR_PROJ_DIR /srv/elixir-data/
# NOTE: it's recommended to set processes value to the number of available cores
WSGIDaemonProcess Elixir processes=8 threads=1 display-name=%{GROUP} home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup Elixir
WSGIScriptAliasMatch "^/(?!static/)" /usr/local/elixir/wsgi.py/$1