Compare commits

...

3 Commits

Author SHA1 Message Date
oleg b0a0080a4a replacing "latest" with real docker image tag 2025-03-07 23:12:38 -05:00
oleg e35b15f024 replacing "latest" with real docker image tag 2025-03-07 23:09:39 -05:00
oleg 3bd31b7d8b crypto_md_day - specific docker tag 2025-03-07 23:02:06 -05:00
4 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.2,using HA trading-calendar and config service 2.0.4,replacing "latest" with real docker image tag
+8 -3
View File
@@ -1,15 +1,20 @@
#!/bin/bash #!/bin/bash
# ------- Settings
ImageTag=1.6.9
DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/crypto_md_day:${ImageTag}
# ------- Settings
host=${1} host=${1}
date=${2} date=${2}
DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/crypto_md_day
if [ -z ${date} ] ; then if [ -z ${date} ] ; then
date=$(date -d "yesterday" +%Y%m%d) date=$(date -d "yesterday" +%Y%m%d)
fi fi
Cmd="docker run" Cmd="docker run"
Cmd+=" --pull=always" Cmd+=" --pull=always"
Cmd+=" --network=host" Cmd+=" --network=host"
+9 -3
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
usage() { usage() {
echo "Usage: $0 -N <num_symbols> [-L <LogDir>] [-d <YYYYMMDD Date>]" echo "Usage: $0 -N <num_symbols> [-L <LogDir>] [-d <YYYYMMDD Date>] [-t <docker_image_tag>]"
exit 1 exit 1
} }
@@ -45,12 +45,12 @@ export -f get_prev_business_day
# ----- Settings # ----- Settings
DockerRegistry=cloud21.cvtt.vpn:5500 DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/alpaca_hbar #:latest
ContainerName=alpaca_hbar ContainerName=alpaca_hbar
LogDir=/home/cvtt/prod/logs LogDir=/home/cvtt/prod/logs
ImageTag=0.1.7
# ----- Settings # ----- Settings
while getopts ":d:N:L:" opt; do while getopts ":d:N:L:t:" opt; do
case ${opt} in case ${opt} in
d ) d )
date_to_load=$OPTARG date_to_load=$OPTARG
@@ -61,6 +61,9 @@ while getopts ":d:N:L:" opt; do
L ) L )
LogDir=$OPTARG LogDir=$OPTARG
;; ;;
t )
ImageTag=$OPTARG
;;
\? ) \? )
echo "Invalid option: -$OPTARG" >&2 echo "Invalid option: -$OPTARG" >&2
usage usage
@@ -72,6 +75,9 @@ while getopts ":d:N:L:" opt; do
esac esac
done done
DockerImage=${DockerRegistry}/alpaca_hbar/${ImageTag} #:latest
if is_container_running "$ContainerName"; then if is_container_running "$ContainerName"; then
echo "Container ${ContainerName} is already running." echo "Container ${ContainerName} is already running."
exit 3 exit 3
+8 -3
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
usage() { usage() {
echo "Usage: $0 -S <symbols> [-L <LogDir>] [-d <YYYYMMDD Date>]" echo "Usage: $0 -S <symbols> [-L <LogDir>] [-d <YYYYMMDD Date>] [-t <docker_image_tag>]"
exit 1 exit 1
} }
@@ -45,12 +45,12 @@ export -f get_prev_business_day
# ----- Settings # ----- Settings
DockerRegistry=cloud21.cvtt.vpn:5500 DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/alpaca_qat #:latest
ContainerName=alpaca_qat ContainerName=alpaca_qat
LogDir=/home/cvtt/prod/logs LogDir=/home/cvtt/prod/logs
ImageTag=0.1.7
# ----- Settings # ----- Settings
while getopts ":d:S:L:" opt; do while getopts ":d:S:L:t:" opt; do
case ${opt} in case ${opt} in
d ) d )
date_to_load=$OPTARG date_to_load=$OPTARG
@@ -61,6 +61,9 @@ while getopts ":d:S:L:" opt; do
L ) L )
LogDir=$OPTARG LogDir=$OPTARG
;; ;;
t )
ImageTag=$OPTARG
;;
\? ) \? )
echo "Invalid option: -$OPTARG" >&2 echo "Invalid option: -$OPTARG" >&2
usage usage
@@ -82,6 +85,8 @@ if is_container_running "$ContainerName"; then
exit 3 exit 3
fi fi
DockerImage=${DockerRegistry}/alpaca_qat:${ImageTag} #:latest
if [ -z "${date_to_load}" ]; then if [ -z "${date_to_load}" ]; then
echo "date_to_load is empty" echo "date_to_load is empty"
date_to_load=$(get_prev_business_day $(date -d "yesterday" '+%Y-%m-%d')) date_to_load=$(get_prev_business_day $(date -d "yesterday" '+%Y-%m-%d'))