Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frameworks/Ruby/hanami/hanami.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM ruby:4.0

ENV RUBY_YJIT_ENABLE=1
ENV WEB_CONCURRENCY=auto

# Use Jemalloc
RUN apt-get update && \
Expand All @@ -21,4 +20,5 @@ ENV HANAMI_ENV=production
ENV HANAMI_PORT=8080
ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world

CMD bundle exec hanami server
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec hanami server
4 changes: 2 additions & 2 deletions frameworks/Ruby/rails/rails-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ RUN bundle install --jobs=8

COPY . /rails/

ENV WEB_CONCURRENCY=auto
ENV RAILS_MAX_THREADS=5
ENV RAILS_ENV=production_mysql
ENV PORT=8080
ENV REDIS_URL=redis://localhost:6379/0
CMD service redis-server start && \
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
service redis-server start && \
bin/rails server
4 changes: 2 additions & 2 deletions frameworks/Ruby/rails/rails.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ RUN bundle install --jobs=8

COPY . /rails/

ENV WEB_CONCURRENCY=auto
ENV RAILS_MAX_THREADS=5
ENV RAILS_ENV=production_postgresql
ENV PORT=8080
ENV REDIS_URL=redis://localhost:6379/0
CMD service redis-server start && \
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
service redis-server start && \
bin/rails server
4 changes: 2 additions & 2 deletions frameworks/Ruby/roda-sequel/roda-sequel-postgres.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ ENV RACK_ENV=production
ENV DBTYPE=postgresql

ENV MAX_THREADS=5
ENV WEB_CONCURRENCY=auto

EXPOSE 8080

CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
4 changes: 2 additions & 2 deletions frameworks/Ruby/roda-sequel/roda-sequel.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ RUN bundle install --jobs=8
ENV RACK_ENV=production
ENV DBTYPE=mysql

ENV WEB_CONCURRENCY=auto
ENV MAX_THREADS=5

EXPOSE 8080

CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
ENV APP_ENV=production
ENV DBTYPE=postgresql

ENV WEB_CONCURRENCY=auto
ENV MAX_THREADS=5

EXPOSE 8080

CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
4 changes: 2 additions & 2 deletions frameworks/Ruby/sinatra-sequel/sinatra-sequel.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
ENV APP_ENV=production
ENV DBTYPE=mysql

ENV WEB_CONCURRENCY=auto
ENV MAX_THREADS=5

EXPOSE 8080

CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080
1 change: 0 additions & 1 deletion frameworks/Ruby/sinatra/sinatra-postgres.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
ENV APP_ENV=production
ENV DBTYPE=postgresql

ENV WEB_CONCURRENCY=auto
ENV MAX_THREADS=5

EXPOSE 8080
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Ruby/sinatra/sinatra.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
ENV APP_ENV=production
ENV DBTYPE=mysql

ENV WEB_CONCURRENCY=auto
ENV MAX_THREADS=5

EXPOSE 8080

CMD bundle exec puma -b tcp://0.0.0.0:8080
CMD export WEB_CONCURRENCY=$(($(nproc)*5/4)) && \
bundle exec puma -b tcp://0.0.0.0:8080
Loading