def __init__(self, resolved_node_definition):
     self.node_def = resolved_node_definition
     self.res = self.node_def['resource']
     self.command = self.node_def.get('attributes',
                                      dict()).get('command', None)
     self.env = self.node_def.get('attributes', dict()).get('env', [])
     Command.__init__(self)
     self.created_resources = {}
Exemple #2
0
    def __init__(self, resolved_node_definition):
        Command.__init__(self)
        self.resolved_node_definition = resolved_node_definition
        self.origin = self.resolved_node_definition['resource']['origin']
        #self.network_mode = self.resolved_node_definition['resource']['network_mode']
        self.image = self.resolved_node_definition['resource']['image']
        self.tag = self.resolved_node_definition['resource']['tag']

        self.command = self.resolved_node_definition.get('attributes',dict()).get('command',None)
        self.env = self.resolved_node_definition.get('attributes',dict()).get('env',None)
        if not self.command or not self.env:
            raise Exception('Missing keys! Docker requires \'command\',\'env\' keywords to be specified under \'contextualisation\' section in node definition!')
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
Exemple #5
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
Exemple #6
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
     self.resolved_node_definition = instance_data['resolved_node_definition']
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
Exemple #8
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
     self.input_type_id = None
Exemple #9
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
     self.resolved_node_definition = instance_data[
         'resolved_node_definition']
Exemple #10
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
     self.res = instance_data['resource']
     self.created_resources = instance_data['instance_id'][
         'created_resources']
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
     self.input_type_id = None
Exemple #12
0
 def __init__(self, resolved_node_definition):
     self.node_def = resolved_node_definition
     self.res = self.node_def['resource']
     Command.__init__(self)
     self.created_resources = {}