This commit is contained in:
2024-08-24 20:52:24 -04:00
parent ed207a3c67
commit 494241ec66
5 changed files with 146 additions and 10 deletions
+12 -10
View File
@@ -2,29 +2,31 @@
# runs in container
# runs on host to start container
usage() {
echo -n "Usage: $0 -c <config_server (dflt: cloud23.cvtt.vpn:6789)>"
echo -n " -e <active_exchanges (ALPACA_SNBOX)>"
echo -n " -a <admin_port (7220)>"
echo -n " -n <portal_name (MD_PORTAL_ALPACA)>"
echo -n "Usage: ${0}"
echo -n " [-C <config (dflt: apps/cvtt_eqt_alpaca)>]"
echo -n " [-c <config_server (dflt: cloud23.cvtt.vpn:6789)>]"
echo -n " [-e <active_exchanges (ALPACA_SNBOX)>]"
echo -n " [-a <admin_port (7220)>]"
echo -n " [-n <portal_name (MD_PORTAL_ALPACA)>]"
echo
exit 1
}
# ConfigServer=cloud16.cvtt.vpn
ConfigServer=cloud23.cvtt.vpn:6789
Config=apps/cvtt_eqt_alpaca
ActiveExchanges=ALPACA_SNDBX
PortalName=MD_PORTAL_ALPACA_SNDBX
AdminPort=7220
while getopts ":c:e:a:n:" opt; do
while getopts ":C:c:e:a:n:" opt; do
case ${opt} in
C )
Config=$OPTARG
;;
c )
ConfigServer=$OPTARG
;;
@@ -51,7 +53,7 @@ done
Cmd="python3.10"
Cmd="${Cmd} cvttpy/apps/md/md_portal.py"
Cmd="${Cmd} --config=http://${ConfigServer}/apps/md_portal"
Cmd="${Cmd} --config=http://${ConfigServer}/${Config}"
Cmd="${Cmd} --credentials_file=/.creds"
Cmd="${Cmd} --active_exchanges=${ActiveExchanges}"
Cmd="${Cmd} --portal_name=${PortalName}"