From 6186a35ad77d120533e5a6fd697f909070d3cf4e Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Thu, 19 Oct 2023 14:23:32 +0100 Subject: [PATCH] making the docker launch script work with the new multi-launch scripts --- configs/docker/run/runDockerEWS.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configs/docker/run/runDockerEWS.sh b/configs/docker/run/runDockerEWS.sh index ac41884..fbc25b2 100755 --- a/configs/docker/run/runDockerEWS.sh +++ b/configs/docker/run/runDockerEWS.sh @@ -56,7 +56,21 @@ do esac done - +if [ "$component" = "Environment" ]; then + component_script="run_Environment_Processor.sh" +elif [ "$component" = "Deposition" ];then + component_script="run_Deposition_Processor.sh" +elif [ "$component" = "Survey" ];then + component_script="run_Survey_Processor.sh" +elif [ "$component" = "Advisory" ];then + component_script="run_Advisory_Processor.sh" +elif [ "$component" = "Scraper" ];then + component_script="run_Environment_Processor.sh" +elif [ "$component" = "Epidemiology" ];then + component_script="run_Epidemiology_Processor.sh" +else + printf "component '%s' not recognised" "$component" +fi function run_coordinator() { printf "component: %s\nconfig: %s\nrundate: %s\n" "$component" "$config" "$rundate" @@ -64,7 +78,7 @@ function run_coordinator() { docker container ls; docker exec \ ews_runner \ - /storage/app/EWS_prod/code/coordinator/scripts/run_Processor.sh \ + /storage/app/EWS_prod/code/coordinator/scripts/"${component_script}" \ -p "$component" \ -c "$config" \ -s "$rundate" \ -- GitLab