mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: avoid core dumps in containers
In some conditions, the google-chrome crashes and a core dump is written in the bind mounted directory. With this commit, the core dumps are disabled in the containers.
This commit is contained in:
parent
78697d2acb
commit
b25aa52fb9
@ -191,7 +191,7 @@ def _docker_run(cmd=False, log_path=False, build_dir=False, container_name=False
|
||||
for dp, hp in enumerate(exposed_ports, start=8069):
|
||||
ports[f'{dp}/tcp'] = ('127.0.0.1', hp)
|
||||
|
||||
ulimits = []
|
||||
ulimits = [docker.types.Ulimit(name='core', soft=0, hard=0)] # avoid core dump in containers
|
||||
if cpu_limit:
|
||||
ulimits.append(docker.types.Ulimit(name='cpu', soft=cpu_limit, hard=cpu_limit))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user