config (for all trading images) is made more flexible, docker compose initial

This commit is contained in:
2024-09-09 20:44:49 -04:00
parent 2c26e4d258
commit 26d0b1a4e0
9 changed files with 166 additions and 174 deletions
@@ -1,12 +1,12 @@
#!/bin/bash
usage() {
echo -n "Usage: $0"
echo -n " [-c <config (dflt: http://cloud23.cvtt.vpn:6789/apps/cvtt_eqt_alpaca)>]"
echo -n " [-e <active_exchanges (ALPACA_SNDBX-MDPORTAL)>]"
echo -n " [-a <admin_port (7222)>"]
echo
exit 1
echo -n "Usage: $0"
echo -n " [-c <config (dflt: http://cloud23.cvtt.vpn:6789/apps/cvtt_eqt_alpaca)>]"
echo -n " [-e <active_exchanges (ALPACA_SNDBX-MDPORTAL)>]"
echo -n " [-a <admin_port (7222)>"]
echo
exit 1
}
args=${*}
@@ -17,25 +17,25 @@ AdminPort=7222
Book=""
while getopts ":c:e:a:" opt; do
case ${opt} in
c )
Config=$OPTARG
;;
e )
ActiveExchanges=$OPTARG
;;
a )
AdminPort=$OPTARG
;;
\? )
echo "Invalid option: -$OPTARG" >&2
usage
;;
: )
echo "Option -$OPTARG requires an argument." >&2
usage
;;
esac
case ${opt} in
c )
Config=$OPTARG
;;
e )
ActiveExchanges=$OPTARG
;;
a )
AdminPort=$OPTARG
;;
\? )
echo "Invalid option: -$OPTARG" >&2
usage
;;
: )
echo "Option -$OPTARG requires an argument." >&2
usage
;;
esac
done
echo "Config=${Config}"