Hi,
I created the job specification here below where the first task “sangoma_setup_task” copy all needed files to {NOMAD_ALLOC_DIR}\run_task\. this task works fine.
Then I start “sangoma_run_task” when pointing to {NOMAD_ALLOC_DIR}\run_task\ to execute the binary. The issue here is this binary needs a file robot.yaml located in {NOMAD_ALLOC_DIR}\run_task\ but instead it looks in {NOMAD_TASK_DIR} root.
How can I fix this ?
job "job_Sangoma" {
datacenters = ["dc1"]
group "group_sangoma" {
count = 1
task "sangoma_setup_task" {
driver = "raw_exec"
config {
command = "xcopy"
args = ["D:\\RobotFramework\\","${NOMAD_ALLOC_DIR}\\run_task\\","/E"]
}
lifecycle {
hook = "prestart"
sidecar = false
}
}
task "sangoma_run_task" {
driver = "raw_exec"
config {
command = "${NOMAD_ALLOC_DIR}\\run_task\\rcc"
args = ["run","-e", "${NOMAD_ALLOC_DIR}\\run_task\\devdata\\env.json"]
}
}
}
}