FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit efd9728d authored by L. Bower's avatar L. Bower
Browse files

updating docker run script to work with new config structure

parent aadca9ed
No related branches found
No related tags found
No related merge requests found
...@@ -24,3 +24,4 @@ dump.csv ...@@ -24,3 +24,4 @@ dump.csv
/configs/coordinator/Cred-WRT.json /configs/coordinator/Cred-WRT.json
/pipeline_resources/SouthAsia/configs/coordinator/an/sys_config_SouthAsia_an_live.json /pipeline_resources/SouthAsia/configs/coordinator/an/sys_config_SouthAsia_an_live.json
/pipeline_resources/SouthAsia/configs/coordinator/fc/sys_config_SouthAsia_fc_live.json /pipeline_resources/SouthAsia/configs/coordinator/fc/sys_config_SouthAsia_fc_live.json
/pipeline_resources/
...@@ -6,7 +6,8 @@ islive='' ...@@ -6,7 +6,8 @@ islive=''
clearup='' clearup=''
component='not_set' component='not_set'
loglevel='info' loglevel='info'
config='/storage/app/EWS_prod/regions/EastAfrica/resources/coordinator/configs/config_EastAfrica_fc_live.json' # default sys_config='not_set'
run_config='not_set'
rundate=$(date '+%Y%m%d') # default today rundate=$(date '+%Y%m%d') # default today
...@@ -23,8 +24,12 @@ do ...@@ -23,8 +24,12 @@ do
component="$2" component="$2"
shift 2 shift 2
;; ;;
-c | --config ) -sc | --sys_config )
config="$2" sys_config="$2"
shift 2
;;
-c | --run_config )
run_config="$2"
shift 2 shift 2
;; ;;
-s | --rundate ) -s | --rundate )
...@@ -82,9 +87,9 @@ else ...@@ -82,9 +87,9 @@ else
fi fi
function run_coordinator() { function run_coordinator() {
printf "component: %s\nconfig: %s\nrundate: %s\n" "$component" "$config" "$rundate" printf "component: %s\nconfig: %s\nrundate: %s\n" "$component" "$sys_config" "$run_config" "$rundate"
printf "optional args:\n%s\n" "$upload $islive $clearup" printf "optional args:\n%s\n" "$upload $islive $clearup"
config_base=`basename $config` config_base=$(basename $run_config)
printf "%s\n" $config_base printf "%s\n" $config_base
docker run \ docker run \
--rm \ --rm \
...@@ -98,7 +103,8 @@ function run_coordinator() { ...@@ -98,7 +103,8 @@ function run_coordinator() {
-w "/storage/app/EWS_prod/code" \ -w "/storage/app/EWS_prod/code" \
lb584/ews_coordinator \ lb584/ews_coordinator \
"$component_script" \ "$component_script" \
-c "$config" \ -sc "$sys_config" \
-c "$run_config" \
-s "$rundate" \ -s "$rundate" \
-l "$loglevel" \ -l "$loglevel" \
$upload \ $upload \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment