From f6480dac88289e2f4ae19a399fe4dfaaa755f129 Mon Sep 17 00:00:00 2001 From: Hannah Ramadan Date: Mon, 10 Jun 2024 15:51:52 -0700 Subject: [PATCH] Update dockerfile --- tests/ruby/Dockerfile | 4 +++- tests/ruby/app.rb | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ruby/Dockerfile b/tests/ruby/Dockerfile index 899db80..7a460e8 100644 --- a/tests/ruby/Dockerfile +++ b/tests/ruby/Dockerfile @@ -13,4 +13,6 @@ EXPOSE 9292 #Ensure executable permissions RUN chmod +x start.sh -CMD ["./start.sh"] +CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "--port", "9292"] +# CMD ["gunicorn", "main:app", "-b", "0.0.0.0:8000", "--workers=1"] +# CMD ["./start.sh"] diff --git a/tests/ruby/app.rb b/tests/ruby/app.rb index ab879cc..455a0c2 100644 --- a/tests/ruby/app.rb +++ b/tests/ruby/app.rb @@ -6,7 +6,5 @@ set :port, 9292 get '/' do - return 'no new relic txn' unless NewRelic::Agent::Tracer.current_transaction - 'hello, world!' end