From 419991b2e8052fd0d696f810889d88083569d814 Mon Sep 17 00:00:00 2001 From: anmarhindi Date: Tue, 5 Nov 2024 15:38:12 +0100 Subject: [PATCH] remove config service --- check_config_service | 31 ------------------------------- handler/config_handler.py | 3 ++- start | 3 --- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 check_config_service diff --git a/check_config_service b/check_config_service deleted file mode 100644 index 00bd9d4..0000000 --- a/check_config_service +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -CONFIG_EXISTS=0 -if [ -n "$(docker ps -q -f name=dev-setup_refinery-config_1)" ] -then - if [ "$( docker container inspect -f '{{.State.Status}}' dev-setup_refinery-config_1 )" == "running" ]; - then - CONFIG_EXISTS=1 - fi -elif [ -n "$(docker ps -q -f name=dev-setup-refinery-config-1)" ] -then - if [ "$( docker container inspect -f '{{.State.Status}}' dev-setup-refinery-config-1 )" == "running" ]; - then - CONFIG_EXISTS=1 - fi -else - if [ -n "$(docker ps -q -f name=refinery-config)" ]; - then - if [ "$( docker container inspect -f '{{.State.Status}}' refinery-config )" == "running" ]; - then - CONFIG_EXISTS=1 - fi - fi -fi -if [ $CONFIG_EXISTS -eq 0 ] -then - echo "refinery-config couldn't be found - exit" - exit 1 -else - echo "refinery-config found -> proceeding" -fi - diff --git a/handler/config_handler.py b/handler/config_handler.py index dce1a88..ccd2036 100644 --- a/handler/config_handler.py +++ b/handler/config_handler.py @@ -6,7 +6,8 @@ __config = None # meant as a const value since env variables will be removed at some point -REQUEST_URL = "http://refinery-config:80/full_config" +# REQUEST_URL = "http://refinery-config:80/full_config" +REQUEST_URL = "http:///refinery-gateway/api/v1/misc/full_config" def __get_config() -> Dict[str, Any]: diff --git a/start b/start index 2314697..6cb8ee1 100755 --- a/start +++ b/start @@ -1,9 +1,6 @@ #!/bin/bash trap "echo -ne '\nstopping container...' && docker stop refinery-tokenizer > /dev/null 2>&1 && echo -ne '\t\t [done]\n'" EXIT - -source check_config_service - HIDE_BUILD=0 while getopts :s flag do