Skip to content

Commit b683fa5

Browse files
authored
[ruby/agoo] Use bundler to require dependencies (#10554)
This makes things more reproducible.
1 parent 7cfa0e1 commit b683fa5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

frameworks/Ruby/agoo/agoo.dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ RUN bundle install --jobs=4
2121

2222
EXPOSE 8080
2323

24-
2524
CMD AGOO_WORKER_COUNT=$(nproc) ruby app.rb

frameworks/Ruby/agoo/app.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# frozen_string_literal: true
22

3-
require 'agoo'
4-
require 'connection_pool'
5-
require 'oj'
6-
require 'pg'
7-
require 'rack'
3+
require 'bundler/setup'
4+
Bundler.require(:default) # Load core modules
85

96
$pool = ConnectionPool.new(size: 1, timeout: 5) do
107
conn = PG::Connection.new({

0 commit comments

Comments
 (0)