Skip to content

Commit

Permalink
Update relative path for Ruby Files (#2529)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Ponnia-M authored Feb 1, 2024
1 parent c7c9fd7 commit 16f5055
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion svc-bgs-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions svc-bgs-api/src/healthcheck/liveness_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions svc-bgs-api/src/healthcheck/readiness_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 16f5055

Please sign in to comment.