File tree Expand file tree Collapse file tree 5 files changed +85
-4
lines changed Expand file tree Collapse file tree 5 files changed +85
-4
lines changed Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
3
3
gem 'oj' , '~> 3.16'
4
- gem 'pg' , '~> 1.5' , group : :postgresql
5
- gem 'puma' , '~> 6.4' , require : false
6
- gem 'falcon' , '~> 0.47' , require : false
7
4
gem 'rails' , '~> 7.2.0'
8
5
gem 'redis' , '~> 5.0'
9
- gem 'trilogy' , '~> 2.8.1' , group : :mysql
10
6
gem 'tzinfo-data'
7
+
8
+ group :mysql do
9
+ gem 'trilogy' , '~> 2.8.1'
10
+ end
11
+
12
+ group :postgresql do
13
+ gem 'pg' , '~> 1.5'
14
+ end
15
+
16
+ group :falcon do
17
+ gem 'falcon' , '~> 0.47' , require : false
18
+ end
19
+
20
+ group :puma do
21
+ gem 'puma' , '~> 6.4' , require : false
22
+ end
23
+
24
+ group :unicorn do
25
+ gem 'unicorn' , '~> 6.1' , require : false
26
+ end
27
+
28
+ group :agoo do
29
+ gem 'agoo' , require : false
30
+ gem 'rackup'
31
+ end
Original file line number Diff line number Diff line change 71
71
minitest (>= 5.1 )
72
72
securerandom (>= 0.3 )
73
73
tzinfo (~> 2.0 , >= 2.0.5 )
74
+ agoo (2.15.13 )
74
75
async (2.17.0 )
75
76
console (~> 1.26 )
76
77
fiber-annotation
137
138
rdoc (>= 4.0.0 )
138
139
reline (>= 0.4.2 )
139
140
json (2.7.2 )
141
+ kgio (2.11.4 )
140
142
localhost (1.3.1 )
141
143
logger (1.6.1 )
142
144
loofah (2.22.0 )
232
234
rake (>= 12.2 )
233
235
thor (~> 1.0 , >= 1.2.2 )
234
236
zeitwerk (~> 2.6 )
237
+ raindrops (0.20.1 )
235
238
rake (13.2.1 )
236
239
rdoc (6.7.0 )
237
240
psych (>= 4.0.0 )
254
257
concurrent-ruby (~> 1.0 )
255
258
tzinfo-data (1.2024.2 )
256
259
tzinfo (>= 1.0.0 )
260
+ unicorn (6.1.0 )
261
+ kgio (~> 2.6 )
262
+ raindrops (~> 0.7 )
257
263
useragent (0.16.10 )
258
264
webrick (1.8.2 )
259
265
websocket-driver (0.7.6 )
@@ -267,14 +273,17 @@ PLATFORMS
267
273
x86_64-linux
268
274
269
275
DEPENDENCIES
276
+ agoo
270
277
falcon (~> 0.47 )
271
278
oj (~> 3.16 )
272
279
pg (~> 1.5 )
273
280
puma (~> 6.4 )
281
+ rackup
274
282
rails (~> 7.2.0 )
275
283
redis (~> 5.0 )
276
284
trilogy (~> 2.8.1 )
277
285
tzinfo-data
286
+ unicorn (~> 6.1 )
278
287
279
288
BUNDLED WITH
280
289
2.3.3
Original file line number Diff line number Diff line change 52
52
"fortune_url" : " /fortunes" ,
53
53
"update_url" : " /updates?queries=" ,
54
54
"plaintext_url" : " /plaintext" ,
55
+ "cached_query_url" : " /cached?queries=" ,
55
56
"port" : 8080 ,
56
57
"approach" : " Realistic" ,
57
58
"classification" : " Fullstack" ,
66
67
"display_name" : " rails-falcon" ,
67
68
"notes" : " " ,
68
69
"versus" : " rack-falcon-mri"
70
+ },
71
+ "agoo" : {
72
+ "db_url" : " /db" ,
73
+ "json_url" : " /json" ,
74
+ "query_url" : " /queries?queries=" ,
75
+ "fortune_url" : " /fortunes" ,
76
+ "update_url" : " /updates?queries=" ,
77
+ "plaintext_url" : " /plaintext" ,
78
+ "cached_query_url" : " /cached?queries=" ,
79
+ "port" : 8080 ,
80
+ "approach" : " Realistic" ,
81
+ "classification" : " Fullstack" ,
82
+ "database" : " Postgres" ,
83
+ "framework" : " rails" ,
84
+ "language" : " Ruby" ,
85
+ "orm" : " Full" ,
86
+ "platform" : " Rack" ,
87
+ "webserver" : " Agoo" ,
88
+ "os" : " Linux" ,
89
+ "database_os" : " Linux" ,
90
+ "display_name" : " rails-agoo" ,
91
+ "notes" : " " ,
92
+ "versus" : " "
69
93
}
70
94
}]
71
95
}
Original file line number Diff line number Diff line change
1
+ FROM ruby:3.4-rc
2
+
3
+ RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends redis-server
4
+
5
+ EXPOSE 8080
6
+ WORKDIR /rails
7
+
8
+ # ENV RUBY_YJIT_ENABLE=1 YJIT is enabled in config/initializers/enable_yjit.rb
9
+
10
+ # Use Jemalloc
11
+ RUN apt-get update && \
12
+ apt-get install -y --no-install-recommends libjemalloc2
13
+ ENV LD_PRELOAD=libjemalloc.so.2
14
+
15
+ COPY ./Gemfile* /rails/
16
+
17
+ ENV BUNDLE_FORCE_RUBY_PLATFORM=true
18
+ ENV BUNDLE_WITHOUT=trilogy
19
+ RUN bundle install --jobs=8
20
+
21
+ COPY . /rails/
22
+
23
+ ENV RAILS_ENV=production_postgresql
24
+ ENV PORT=8080
25
+ ENV REDIS_URL=redis://localhost:6379/0
26
+ CMD service redis-server start
27
+ CMD RACK_ENV=production bundle exec rackup -r agoo -s agoo -p 8080 -q -O workers=$(ruby config/auto_tune.rb | grep -Eo '[0-9]+' | head -n 1)
You can’t perform that action at this time.
0 commit comments