|
|
@ -158,8 +158,18 @@ def make_containers():
|
|
|
|
firstbit = lambda s: (s+'-').split('-')[0]
|
|
|
|
firstbit = lambda s: (s+'-').split('-')[0]
|
|
|
|
secondbit = lambda s: (s+'-').split('-')[1]
|
|
|
|
secondbit = lambda s: (s+'-').split('-')[1]
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
i = 1
|
|
|
|
{
|
|
|
|
lst = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for distro in DISTROS:
|
|
|
|
|
|
|
|
distro, star, count = distro.rpartition('*')
|
|
|
|
|
|
|
|
if star:
|
|
|
|
|
|
|
|
count = int(count)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
count = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for x in range(count):
|
|
|
|
|
|
|
|
lst.append({
|
|
|
|
"distro": firstbit(distro),
|
|
|
|
"distro": firstbit(distro),
|
|
|
|
"name": "target-%s-%s" % (distro, i),
|
|
|
|
"name": "target-%s-%s" % (distro, i),
|
|
|
|
"hostname": docker_hostname,
|
|
|
|
"hostname": docker_hostname,
|
|
|
@ -169,12 +179,16 @@ def make_containers():
|
|
|
|
if secondbit(distro) == 'py3'
|
|
|
|
if secondbit(distro) == 'py3'
|
|
|
|
else '/usr/bin/python'
|
|
|
|
else '/usr/bin/python'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
for i, distro in enumerate(DISTROS, 1)
|
|
|
|
i += 1
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
return lst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def start_containers(containers):
|
|
|
|
def start_containers(containers):
|
|
|
|
|
|
|
|
if os.environ.get('KEEP'):
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
run_batches([
|
|
|
|
run_batches([
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"docker rm -f %(name)s || true" % container,
|
|
|
|
"docker rm -f %(name)s || true" % container,
|
|
|
|