mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 07:54:00 -07:00
Add seccomp support to ansible-test.
This commit is contained in:
parent
32fc6746d8
commit
c1173a2aec
4 changed files with 22 additions and 8 deletions
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue