Compare commits
No commits in common. "b0a0080a4a8ba0fc5db89c4a23744ae8319dc03e" and "3bd31b7d8b437082ad6054456a94d26b99bd04b8" have entirely different histories.
b0a0080a4a
...
3bd31b7d8b
2
VERSION
2
VERSION
@ -1 +1 @@
|
||||
2.0.4,replacing "latest" with real docker image tag
|
||||
2.0.3,using HA trading-calendar and config service
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 -N <num_symbols> [-L <LogDir>] [-d <YYYYMMDD Date>] [-t <docker_image_tag>]"
|
||||
echo "Usage: $0 -N <num_symbols> [-L <LogDir>] [-d <YYYYMMDD Date>]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -45,12 +45,12 @@ export -f get_prev_business_day
|
||||
|
||||
# ----- Settings
|
||||
DockerRegistry=cloud21.cvtt.vpn:5500
|
||||
DockerImage=${DockerRegistry}/alpaca_hbar #:latest
|
||||
ContainerName=alpaca_hbar
|
||||
LogDir=/home/cvtt/prod/logs
|
||||
ImageTag=0.1.7
|
||||
# ----- Settings
|
||||
|
||||
while getopts ":d:N:L:t:" opt; do
|
||||
while getopts ":d:N:L:" opt; do
|
||||
case ${opt} in
|
||||
d )
|
||||
date_to_load=$OPTARG
|
||||
@ -61,9 +61,6 @@ while getopts ":d:N:L:t:" opt; do
|
||||
L )
|
||||
LogDir=$OPTARG
|
||||
;;
|
||||
t )
|
||||
ImageTag=$OPTARG
|
||||
;;
|
||||
\? )
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
usage
|
||||
@ -75,9 +72,6 @@ while getopts ":d:N:L:t:" opt; do
|
||||
esac
|
||||
done
|
||||
|
||||
DockerImage=${DockerRegistry}/alpaca_hbar/${ImageTag} #:latest
|
||||
|
||||
|
||||
if is_container_running "$ContainerName"; then
|
||||
echo "Container ${ContainerName} is already running."
|
||||
exit 3
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 -S <symbols> [-L <LogDir>] [-d <YYYYMMDD Date>] [-t <docker_image_tag>]"
|
||||
echo "Usage: $0 -S <symbols> [-L <LogDir>] [-d <YYYYMMDD Date>]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -45,12 +45,12 @@ export -f get_prev_business_day
|
||||
|
||||
# ----- Settings
|
||||
DockerRegistry=cloud21.cvtt.vpn:5500
|
||||
DockerImage=${DockerRegistry}/alpaca_qat #:latest
|
||||
ContainerName=alpaca_qat
|
||||
LogDir=/home/cvtt/prod/logs
|
||||
ImageTag=0.1.7
|
||||
# ----- Settings
|
||||
|
||||
while getopts ":d:S:L:t:" opt; do
|
||||
while getopts ":d:S:L:" opt; do
|
||||
case ${opt} in
|
||||
d )
|
||||
date_to_load=$OPTARG
|
||||
@ -61,9 +61,6 @@ while getopts ":d:S:L:t:" opt; do
|
||||
L )
|
||||
LogDir=$OPTARG
|
||||
;;
|
||||
t )
|
||||
ImageTag=$OPTARG
|
||||
;;
|
||||
\? )
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
usage
|
||||
@ -85,8 +82,6 @@ if is_container_running "$ContainerName"; then
|
||||
exit 3
|
||||
fi
|
||||
|
||||
DockerImage=${DockerRegistry}/alpaca_qat:${ImageTag} #:latest
|
||||
|
||||
if [ -z "${date_to_load}" ]; then
|
||||
echo "date_to_load is empty"
|
||||
date_to_load=$(get_prev_business_day $(date -d "yesterday" '+%Y-%m-%d'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user