From 16f50552ea22b2fb3cb359707793fe843d5c1a7a Mon Sep 17 00:00:00 2001 From: Ponnia <151670616+Ponnia-M@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:30:04 -0500 Subject: [PATCH] Update relative path for Ruby Files (#2529) * Fix Liveness and readiness failure * Corrected path in dockerfiles * Add path for rabbit_subscriber file * Update bgs-api values.yml * Path correction * Update relative path for required Ruby files * Update Dockerfile --- svc-bgs-api/Dockerfile | 2 +- svc-bgs-api/src/healthcheck/liveness_script.rb | 1 + svc-bgs-api/src/healthcheck/readiness_script.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/svc-bgs-api/Dockerfile b/svc-bgs-api/Dockerfile index 6a6ef4ef30..ac0b31dff1 100644 --- a/svc-bgs-api/Dockerfile +++ b/svc-bgs-api/Dockerfile @@ -35,7 +35,7 @@ COPY healthcheck/liveness_script.rb /app/healthcheck/liveness_script.rb COPY healthcheck/readiness_script.rb /app/healthcheck/readiness_script.rb # Make scripts executable -RUN chmod +x /app/healthcheck/liveness_script.rb /app/healthcheck/readiness_script.rb +RUN chmod +x /app/healthcheck/liveness_script.rb && chmod +x /app/healthcheck/readiness_script.rb USER tron ENTRYPOINT ["/app/entrypoint-wrapper.sh"] diff --git a/svc-bgs-api/src/healthcheck/liveness_script.rb b/svc-bgs-api/src/healthcheck/liveness_script.rb index b48fbc6f1d..0745999b5c 100644 --- a/svc-bgs-api/src/healthcheck/liveness_script.rb +++ b/svc-bgs-api/src/healthcheck/liveness_script.rb @@ -2,6 +2,7 @@ # that the BGS-api application is running and able to perform its basic functions. require_relative '../lib/rabbit_subscriber' +require_relative '../config/constants' def check_rabbitmq_connection subscriber = RabbitSubscriber.new(BUNNY_ARGS) diff --git a/svc-bgs-api/src/healthcheck/readiness_script.rb b/svc-bgs-api/src/healthcheck/readiness_script.rb index 545084ad55..70d57a51d4 100644 --- a/svc-bgs-api/src/healthcheck/readiness_script.rb +++ b/svc-bgs-api/src/healthcheck/readiness_script.rb @@ -2,6 +2,7 @@ # that the BGS-api application is ready to perform its basic functions. require_relative '../lib/rabbit_subscriber' +require_relative '../config/constants' require_relative '../lib/bgs_client' def rabbitmq_connection_active?