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