Skip to content
Snippets Groups Projects
Commit e2eca738 authored by Michael Marsh's avatar Michael Marsh
Browse files

adding docker options

parent f1810286
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment