Commit graph

8 commits

Author SHA1 Message Date
Théo Lebrun
6c9decb84b docker: apache-config: add favicon.ico
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2025-01-06 15:10:52 +01:00
Franciszek Stachura
a51430a2e9 apache: Add robots.txt to apache docker setup 2025-01-06 15:06:16 +01:00
Théo Lebrun
412bb85940 docker: Apache config: set WSGI restart-interval to 12 hours
By default it never restarts. It is a good idea to avoid leaks across
weeks of a Python process running.

Also remove useless comment about processes value (16 is probably higher
than CPU count and will be fine).

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2025-01-03 12:08:29 +01:00
Théo Lebrun
9033e80fb2 Dockerfile: set processes to 16 (convenient for prod server)
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2024-12-25 10:50:50 +01:00
Théo Lebrun
d24114b0fe 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>
2024-12-25 10:31:20 +01:00
Théo Lebrun
24e11d2749 docker: set WSGI processes=8 threads=1
Benchmarks tell us throughput increases linearly with processes count.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
2024-12-24 16:05:03 +01:00
Franciszek Stachura
6e01f3b023 Dockerfile: update to support WSGI Elixir
* Build bsddb in a separate stage to avoid using system packages in venv
* Update Docker Apache config to support WSGI
2024-08-27 11:33:19 +02:00
Franciszek Stachura
ffe8d79c40 Simplify and refactor Dockerfile
* Remove repository indexing from Dockerfile
* Copy Elixir code from the context instead of cloning it from Github
* Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile
* Add docs for the new Dockerfile
* Add an utility script that allows easier repository configuration
* Add .dockerignore
* Use relative paths in Docker section in README
2024-08-05 14:54:03 +02:00
Renamed from docker/debian/000-default.conf (Browse further)