From f57b9d0e0ecfe097faff00d24f168ab71dcc24b2 Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 9 Jan 2026 13:57:37 +0100 Subject: [PATCH] [ruby/agoo] Use bundler to require dependencies This makes things more reproducible. --- frameworks/Ruby/agoo/agoo.dockerfile | 1 - frameworks/Ruby/agoo/app.rb | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frameworks/Ruby/agoo/agoo.dockerfile b/frameworks/Ruby/agoo/agoo.dockerfile index 3860d278a0b..3ee64442984 100644 --- a/frameworks/Ruby/agoo/agoo.dockerfile +++ b/frameworks/Ruby/agoo/agoo.dockerfile @@ -21,5 +21,4 @@ RUN bundle install --jobs=4 EXPOSE 8080 - CMD AGOO_WORKER_COUNT=$(nproc) ruby app.rb diff --git a/frameworks/Ruby/agoo/app.rb b/frameworks/Ruby/agoo/app.rb index e49a5377461..ec61c1cbf8b 100644 --- a/frameworks/Ruby/agoo/app.rb +++ b/frameworks/Ruby/agoo/app.rb @@ -1,10 +1,7 @@ # frozen_string_literal: true -require 'agoo' -require 'connection_pool' -require 'oj' -require 'pg' -require 'rack' +require 'bundler/setup' +Bundler.require(:default) # Load core modules $pool = ConnectionPool.new(size: 1, timeout: 5) do conn = PG::Connection.new({