@@ -59,12 +59,6 @@ def have_docker():
5959 return proc .wait () == 0
6060
6161
62- # -----------------
63-
64- # Force line buffering on stdout.
65- sys .stdout = os .fdopen (1 , 'w' , 1 )
66-
67-
6862def _argv (s , * args ):
6963 """Interpolate a command line using *args, return an argv style list.
7064
@@ -195,13 +189,11 @@ def __exit__(self, _1, _2, _3): pass
195189
196190os .environ .setdefault ('ANSIBLE_STRATEGY' ,
197191 os .environ .get ('STRATEGY' , 'mitogen_linear' ))
198- # Ignoreed when MODE=mitogen
199- ANSIBLE_VERSION = os .environ .get ('VER' , '2.6.2' )
200192GIT_ROOT = os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' ))
201193# Used only when MODE=mitogen
202- DISTRO = os .environ .get ('DISTRO' , 'debian ' )
194+ DISTRO = os .environ .get ('DISTRO' , 'debian9 ' )
203195# Used only when MODE=ansible
204- DISTROS = os .environ .get ('DISTROS' , 'debian centos6 centos7 ' ).split ()
196+ DISTROS = os .environ .get ('DISTROS' , 'centos6 centos8 debian9 debian11 ubuntu1604 ubuntu2004 ' ).split ()
205197TARGET_COUNT = int (os .environ .get ('TARGET_COUNT' , '2' ))
206198BASE_PORT = 2200
207199TMP = TempDir ().path
@@ -254,11 +246,13 @@ def make_containers(name_prefix='', port_offset=0):
254246 >>> pprint.pprint(make_containers())
255247 [{'distro': 'debian',
256248 'hostname': 'localhost',
249+ 'image': 'public.ecr.aws/n5z0e8q9/debian-test',
257250 'name': 'target-debian-1',
258251 'port': 2201,
259252 'python_path': '/usr/bin/python'},
260253 {'distro': 'centos6',
261254 'hostname': 'localhost',
255+ 'image': 'public.ecr.aws/n5z0e8q9/centos6-test',
262256 'name': 'target-centos6-2',
263257 'port': 2202,
264258 'python_path': '/usr/bin/python'}]
@@ -280,6 +274,7 @@ def make_containers(name_prefix='', port_offset=0):
280274 for x in range (count ):
281275 lst .append ({
282276 "distro" : firstbit (distro ),
277+ "image" : image_for_distro (distro ),
283278 "name" : name_prefix + ("target-%s-%s" % (distro , i )),
284279 "hostname" : docker_hostname ,
285280 "port" : BASE_PORT + i + port_offset ,
@@ -358,7 +353,7 @@ def start_containers(containers):
358353 "--publish 0.0.0.0:%(port)s:22/tcp "
359354 "--hostname=%(name)s "
360355 "--name=%(name)s "
361- "mitogen/%(distro)s-test "
356+ "%(image)s "
362357 % container
363358 ]
364359 for container in containers
0 commit comments