Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
csbase-dev
sgarest-daemon
Commits
da7922b8
Commit
da7922b8
authored
5 years ago
by
Carla Goncalves Ourofino
Browse files
Options
Download
Patches
Plain Diff
Evita configuração múltipla dentro de configuração múltipla.
[SOMA-3827][SOMA-4041]
parent
4d04b14c
master
maia/4208/FixInvalidPropTestInCiCd
maia/9022/SgaCygwinInstall
maia/9564/DisableKubernetesDeploy
newfeature/SOMA-3699_IdentificarVersaoSGA
newfeature/SOMA-4444_AddSgaToK8s
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sga/configuration.lua
+3
-1
sga/configuration.lua
sgad-multi.cfg.example
+37
-0
sgad-multi.cfg.example
with
40 additions
and
1 deletion
+40
-1
sga/configuration.lua
+
3
−
1
View file @
da7922b8
...
...
@@ -28,7 +28,9 @@ function configuration.read(filename, sga_name)
-- TODO: O que fazer nesse caso? Avisar que foi ignorado?
config
.
sga_name
=
nil
end
config
,
err
=
configuration
.
get
(
config
.
sga
[
sga_name
],
filename
,
config
)
local
config_data
=
config
.
sga
[
sga_name
]
config
.
sga
=
nil
config
,
err
=
configuration
.
get
(
config_data
,
filename
,
config
)
if
not
config
then
return
nil
,
"["
..
sga_name
..
"] "
..
err
end
...
...
This diff is collapsed.
Click to expand it.
sgad-multi.cfg.example
0 → 100644
+
37
−
0
View file @
da7922b8
csbase_server = "http://localhost:40409"
platform = "Linux26g4"
-- sgad_bind_addr = "127.0.0.1"
sgad_host = "localhost"
sgad_port = 12345
--sga_name = "chuva"
status_interval_s = 10
exec_polling_interval_s = 5
register_retry_s = 3
project_root_dir = os.getenv("HOME").."/test/sga-environment/csgrid/projects"
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"
}
sga.first = [[
platform = "Linux44_64"
sandbox_root_dir = "/tmp/sgad/sandbox-first-chuva"
]]
sga.second = [[
sga_name = "second"
platform = "Linux64e5"
sandbox_root_dir = "/tmp/sgad/sandbox-second-chuva"
]]
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets