Commit dc2873fc authored by Felipe Pina's avatar Felipe Pina
Browse files

[BGCSGRID-640] Adicionar suporte a recursos

+ Adiconado suporte a recursos no SGA-REST
+ A lista de recursos do SGA é especificada na tabela resources do arquivo de configuração
+ Alteração do exemplo de arquivo de configuração
Showing with 14 additions and 0 deletions
+14 -0
......@@ -88,6 +88,7 @@ local Client = safer.readonly {
lost = persisted_jobs.lost,
retrieved = persisted_jobs.retrieved,
},
resources = self.config.resources,
extra_config = self.config.extra_config
}),
})
......
......@@ -45,6 +45,7 @@ function configuration.check(config)
return ok
end, "must be a valid module"),
driver_config = schema.Optional(schema.Map(schema.String, schema.Any)),
resources = schema.Optional(schema.Collection(schema.String)),
extra_config = schema.Optional(schema.Map(schema.String, schema.Any)),
}
local err = schema.CheckSchema(config, config_schema)
......
......@@ -11,3 +11,15 @@ algorithm_root_dir = os.getenv("HOME").."/test/sga-environment/csgrid/algorithms
runtime_data_dir = (os.getenv("TMPDIR") or "/tmp").."/sgad"
sandbox_root_dir = "/tmp/sgad/sandbox"
driver = "sga.driver.posix"
resources = {
"java",
"lua"
}
extra_config = {
csbase_transfer_name = "ssh-datatransfer",
csbase_csfs_root_dir = "/tmp/csfs_sandbox",
ssh_host = "localhost",
ssh_port = 22,
ssh_user_name = "csgrid",
ssh_private_key_path = "/home/csgrid/.ssh/foo_id_rsa"
}
\ No newline at end of file
Supports Markdown
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