From e2eca738dc7d838e050050a15bc776c22fc735b5 Mon Sep 17 00:00:00 2001 From: Michael Marsh <mmarsh@cs.umd.edu> Date: Tue, 20 Feb 2018 14:42:23 -0500 Subject: [PATCH] adding docker options --- example.yml | 1 + start_testbed.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/example.yml b/example.yml index 213c7e0..c1b1ffe 100644 --- a/example.yml +++ b/example.yml @@ -2,6 +2,7 @@ # Modify these to suit your needs. image: "gizmonic.cs.umd.edu:8080/baseline" image_cmd: "/usr/bin/tail -f /etc/issue" +docker_opts: "" # Here's how you define the network you want. # The topology can be "mesh" or "star". The diff --git a/start_testbed.py b/start_testbed.py index d6a8a84..1a58bb2 100755 --- a/start_testbed.py +++ b/start_testbed.py @@ -121,9 +121,11 @@ def start_node(base_name,i): 'run', '-d', '--name', - name, - conf['image'] + name ] + if conf['docker_opts']: + command.extend(conf['docker_opts'].split()) + command.append(conf['image']) command.extend(conf['image_cmd'].split()) retval = subprocess.call(command) -- GitLab