(context)
return common.GenerateEmbeddableYaml(manifest_yaml_string)
Generates a Container Manifest given a Template context.

  Args:
    context: Template context, which must contain dockerImage and port
        properties, and an optional dockerEnv property.

  Returns:
    A Container Manifest as a YAML string.
Generates a Container Manifest given a Template context.
Generates a Container Manifest given a Template context .
def GenerateManifest(context):
  """Generates a Container Manifest given a Template context.

  Args:
    context: Template context, which must contain dockerImage and port
        properties, and an optional dockerEnv property.

  Returns:
    A Container Manifest as a YAML string.
  """
  env = ""
  env_list = []
  if DCKRENV in context.properties:
    for key, value in context.properties[DCKRENV].iteritems():
      env_list.append({"name": key, "value": value})
  if env_list:
    env = "env: " + yaml.dump(env_list, default_flow_style=True)

  manifest_yaml_string = MANIFEST % {
      "name": context.env["name"],
      "dockerImage": context.properties[DCKRIMAGE],
      "port": context.properties[default.PORT],
      "env": env
  }
  return common.GenerateEmbeddableYaml(manifest_yaml_string)
def GenerateManifest ( context ) : env = "" env_list = [ ] if DCKRENV in context . properties : for key , value in context . properties [ DCKRENV ] . iteritems ( ) : env_list . append ( { "name" : key , "value" : value } ) if env_list : env = "env: " + yaml . dump ( env_list , default_flow_style = True ) manifest_yaml_string = MANIFEST % { "name" : context . env [ "name" ] , "dockerImage" : context . properties [ DCKRIMAGE ] , "port" : context . properties [ default . PORT ] , "env" : env } return common . GenerateEmbeddableYaml ( manifest_yaml_string )