This commit is contained in:
Oleg Sheynin 2025-03-18 13:47:51 -04:00
parent f2bb798fff
commit bdee995ca1
2 changed files with 17 additions and 5 deletions

View File

@ -1 +1 @@
2.0.5,replacing "latest" with real docker image tag 2.0.6,OPS-6

View File

@ -1,18 +1,30 @@
#!/bin/bash #!/bin/bash
usage() {
echo "Usage: ${0} <docker_image_tag> <host> [<date>]"
exit 1
}
# ------- Settings # ------- Settings
ImageTag=1.6.9
DockerRegistry=cloud21.cvtt.vpn:5500 DockerRegistry=cloud21.cvtt.vpn:5500
DockerImage=${DockerRegistry}/crypto_md_day:${ImageTag}
# ------- Settings # ------- Settings
host=${1} ImageTag=${1}
date=${2} host=${2}
date=${3}
if [ -z ${ImageTag} ] ; then
usage
fi
if [ -z ${host} ] ; then
usage
fi
if [ -z ${date} ] ; then if [ -z ${date} ] ; then
date=$(date -d "yesterday" +%Y%m%d) date=$(date -d "yesterday" +%Y%m%d)
fi fi
DockerImage=${DockerRegistry}/crypto_md_day:${ImageTag}
Cmd="docker run" Cmd="docker run"