Exemplo n.º 1
0
 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 = {}
Exemplo n.º 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!')
Exemplo n.º 3
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
Exemplo n.º 4
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
Exemplo n.º 5
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
Exemplo n.º 6
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
     self.resolved_node_definition = instance_data['resolved_node_definition']
Exemplo n.º 7
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
Exemplo n.º 8
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
     self.input_type_id = None
Exemplo n.º 9
0
 def __init__(self, instance_data):
     Command.__init__(self)
     self.instance_data = instance_data
     self.resolved_node_definition = instance_data[
         'resolved_node_definition']
Exemplo n.º 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']
Exemplo n.º 11
0
 def __init__(self, resolved_node_definition):
     Command.__init__(self)
     self.resolved_node_definition = resolved_node_definition
     self.input_type_id = None
Exemplo n.º 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 = {}