mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Expose docker socket to test containers.
This commit is contained in:
parent
7ab4a889ad
commit
554423cf04
1 changed files with 5 additions and 0 deletions
|
@ -211,6 +211,11 @@ def delegate_docker(args, exclude, require):
|
||||||
'--privileged=%s' % str(privileged).lower(),
|
'--privileged=%s' % str(privileged).lower(),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
docker_socket = '/var/run/docker.sock'
|
||||||
|
|
||||||
|
if os.path.exists(docker_socket):
|
||||||
|
test_options += ['--volume', '%s:%s' % (docker_socket, docker_socket)]
|
||||||
|
|
||||||
if util_id:
|
if util_id:
|
||||||
test_options += [
|
test_options += [
|
||||||
'--link', '%s:ansible.http.tests' % util_id,
|
'--link', '%s:ansible.http.tests' % util_id,
|
||||||
|
|
Loading…
Reference in a new issue