diff options
author | 2017-06-28 15:23:40 +0200 | |
---|---|---|
committer | 2017-06-28 15:23:40 +0200 | |
commit | aba2806d6c399c89be0af2617267e75331d217d9 (patch) | |
tree | e504ce0d8ce23980d2541d699b06caa20e5a1b79 /moonv4/moon_orchestrator | |
parent | 4f120c725dcf091ab5d9a7a3839f110e52c46699 (diff) |
Update code for master-slave communications
Change-Id: Ic605fb25a68bfe1c9a197eb502704c25a9caef86
Diffstat (limited to 'moonv4/moon_orchestrator')
-rw-r--r-- | moonv4/moon_orchestrator/moon_orchestrator/server.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/moonv4/moon_orchestrator/moon_orchestrator/server.py b/moonv4/moon_orchestrator/moon_orchestrator/server.py index ef69af70..85d7d3f4 100644 --- a/moonv4/moon_orchestrator/moon_orchestrator/server.py +++ b/moonv4/moon_orchestrator/moon_orchestrator/server.py @@ -30,11 +30,6 @@ SLAVES = {} docker = Client(base_url=CONF.docker_url) -# def get_template(filename="template.dockerfile"): -# simple_loader = FileSystemLoader(TEMPLATES_FOLDER) -# env = Environment(loader=simple_loader) -# return env.get_template(filename) - def kill_handler(signum, frame): _exit(0) @@ -102,7 +97,7 @@ def _exit(exit_number=0, error=None): else: docker.remove_container(container=_container) - # TODO (dthom): put in the debug log + # TODO (asteroide): put in the debug log if error: LOG.info(str(error)) sys.exit(exit_number) @@ -117,7 +112,8 @@ def __save_pid(): def server(): - # conf_file = options.configure(DOMAIN) + # TODO (asteroide): need to add some options: + # --foreground: run in foreground __save_pid() LOG.info("Starting server with IP {}".format(CONF.orchestrator.host)) |