Commit 50d73a57 authored by Samuel GAIST's avatar Samuel GAIST

[execution][docker] Use new configuration name option for database setup

parent f4488133
......@@ -153,7 +153,7 @@ class DockerExecutor(RemoteExecutor):
self.host = host
def __create_db_container(self, datasets_uid, network_name):
def __create_db_container(self, datasets_uid, network_name, configuration_name=None):
# Configuration and needed files
databases_configuration_path = utils.temporary_directory()
self.dump_databases_provider_configuration(databases_configuration_path)
......@@ -195,6 +195,9 @@ class DockerExecutor(RemoteExecutor):
'/beat/cache'
]
if configuration_name:
cmd.append(configuration_name)
if logger.getEffectiveLevel() <= logging.DEBUG:
cmd.insert(1, '--debug')
......@@ -336,7 +339,7 @@ class DockerExecutor(RemoteExecutor):
if self.loop_algorithm is not None:
if len(self.databases) > 0:
databases_infos['loop_db'] = self.__create_db_container(datasets_uid, network_name)
databases_infos['loop_db'] = self.__create_db_container(datasets_uid, network_name, "loop")
loop_algorithm_container_port = utils.find_free_port()
cmd = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment