From b08ffbb73b6caf7f739db035c051b997c0b24eb4 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Mon, 22 Jul 2024 13:00:00 -0400 Subject: [PATCH] progress --- release_version.txt | 2 +- scripts/crypto_hist_md/crypto_md_day.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 scripts/crypto_hist_md/crypto_md_day.sh diff --git a/release_version.txt b/release_version.txt index e3e1807..7e310ba 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -0.9.8 +0.9.9 diff --git a/scripts/crypto_hist_md/crypto_md_day.sh b/scripts/crypto_hist_md/crypto_md_day.sh new file mode 100644 index 0000000..00b1403 --- /dev/null +++ b/scripts/crypto_hist_md/crypto_md_day.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +host=${1} +date=${2} + +DockerRegistry=cloud21.cvtt.vpn:5500 +DockerImage=${DockerRegistry}/crypto_md_day + +if [ -z ${date} ] ; then + date=$(date -d "yesterday" +%Y%m%d) +fi + +Cmd="docker run" +Cmd="${Cmd} --network=host" +Cmd="${Cmd} --name=crypto_md_day.${host}.${date}" +Cmd="${Cmd} --rm" +Cmd="${Cmd} ${DockerImage}" +Cmd="${Cmd} -h ${host}" +Cmd="${Cmd} -d ${date}" +Cmd="${Cmd} -s coinbase,bnbspot,bnbfut" + +echo $Cmd +eval $Cmd