1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

Enable ptrace in docker for sanitizers

This commit is contained in:
Daniel Evans 2019-09-01 00:59:58 +01:00
parent a65b2e030b
commit 6be775f3ec

View File

@ -32,6 +32,7 @@ def create(ns: argparse.Namespace):
env_args = [a for e in ns.env for a in ('-e', e)]
env_args += ['-e', 'DOCKER=TRUE', ]
run_args = ['docker', 'run',
'--cap-add', 'SYS_PTRACE',
'-v', '{}:/src:rw,z'.format(str(openrw_dir)),
'-v', '{}:/build:rw,z'.format(str(build_dir)) ] + \
env_args + ['--name', ns.name, '-d', ns.tag, 'sleep', 'infinity']