From 9b2bda625758c631677a6bcacf62658b5f95cc78 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Wed, 6 Nov 2024 10:46:41 -0500 Subject: [PATCH] crypto_exch_stats docker run --- build/list_docker_images.sh | 33 ++++++++++++++++++++++++++++ docker/research/crypto_exch_stats.sh | 16 ++++++++++++++ release_version.txt | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100755 build/list_docker_images.sh create mode 100755 docker/research/crypto_exch_stats.sh diff --git a/build/list_docker_images.sh b/build/list_docker_images.sh new file mode 100755 index 0000000..fe57431 --- /dev/null +++ b/build/list_docker_images.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +usage() { + echo -n "Usage: ${0} " + echo + exit 1 +} +# --- Settings +RegistryService=cloud21.cvtt.vpn:5500 +RegistryProtocol=http + +print_all_reg_images() { + project=${1} + + repositories=$(curl -s "${RegistryProtocol}://${RegistryService}/v2/_catalog" | jq -r '.repositories[]') + + for repo in $repositories; do + # Fetch all tags for the repository + tags=$(curl -s "${RegistryProtocol}://${RegistryService}/v2/$repo/tags/list" | jq -r '.tags[]') + + # List each tag + echo "REPO: $repo" + for tag in $tags; do + if [ "${project}" == "" ];then + echo "$repo:$tag" + else + echo "$repo:$tag" | grep ${project} + fi + done + done +} + +print_all_reg_images ${1} \ No newline at end of file diff --git a/docker/research/crypto_exch_stats.sh b/docker/research/crypto_exch_stats.sh new file mode 100755 index 0000000..45c4759 --- /dev/null +++ b/docker/research/crypto_exch_stats.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +Cmd="docker run" +Cmd+=" -d" +Cmd+=" --rm" +Cmd+=" --pull=always" +Cmd+=" --network=host" +Cmd+=" --name=crypto_exch_stats" +Cmd+=" --volume=${HOME}/prod/data:/app/data" +Cmd+=" --volume=${HOME}/prod/logs:/logs" +Cmd+=" cloud21.cvtt.vpn:5500/crypto_exch_stats:latest" + +echo ${Cmd} +eval ${Cmd} +# Cmd+=" cloud21.cvtt.vpn:5500/relative_liquidity:latest" + diff --git a/release_version.txt b/release_version.txt index a805dad..a67dd92 100644 --- a/release_version.txt +++ b/release_version.txt @@ -1 +1 @@ -1.8.5.fx1,docker_image_builder +1.8.6,crypto_exch_stats docker run