Add seccomp support to ansible-test.

This commit is contained in:
Matt Clay 2018-08-30 11:36:57 -07:00
commit c1173a2aec
4 changed files with 22 additions and 8 deletions

View file

@ -239,6 +239,9 @@ def delegate_docker(args, exclude, require, integration_targets):
docker_socket = '/var/run/docker.sock'
if args.docker_seccomp != 'default':
test_options += ['--security-opt', 'seccomp=%s' % args.docker_seccomp]
if os.path.exists(docker_socket):
test_options += ['--volume', '%s:%s' % (docker_socket, docker_socket)]