Skip to content

Commit 536a60c

Browse files
committed
[rails] Only install used servers
When testing with puma we don't need to install falcon or unicorn.
1 parent ada90ad commit 536a60c

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

frameworks/Ruby/rails/rails-agoo.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ ENV LD_PRELOAD=libjemalloc.so.2
1515
COPY ./Gemfile* /rails/
1616

1717
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
18-
ENV BUNDLE_WITHOUT=trilogy
18+
ENV BUNDLE_WITHOUT=mysql puma falcon unicorn
19+
1920
RUN bundle install --jobs=8
2021

2122
COPY . /rails/

frameworks/Ruby/rails/rails-falcon.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ ENV LD_PRELOAD=libjemalloc.so.2
1515
COPY ./Gemfile* /rails/
1616

1717
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
18-
ENV BUNDLE_WITHOUT=mysql
18+
ENV BUNDLE_WITHOUT=mysql agoo puma unicorn
19+
1920
RUN bundle install --jobs=8
2021

2122
COPY . /rails/
2223

2324
ENV RAILS_ENV=production_postgresql
2425
ENV PORT=8080
2526
ENV REDIS_URL=redis://localhost:6379/0
27+
CMD service redis-server start
2628
CMD bundle exec falcon host

frameworks/Ruby/rails/rails-mysql.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ ENV LD_PRELOAD=libjemalloc.so.2
1515
COPY ./Gemfile* /rails/
1616

1717
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
18-
ENV BUNDLE_WITHOUT=postgresql
18+
ENV BUNDLE_WITHOUT=postgresql agoo falcon unicorn
1919
RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

2323
ENV RAILS_ENV=production_mysql
2424
ENV PORT=8080
2525
ENV REDIS_URL=redis://localhost:6379/0
26-
CMD ./run-with-redis.sh
26+
CMD service redis-server start
27+
CMD rails server

frameworks/Ruby/rails/rails.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ ENV LD_PRELOAD=libjemalloc.so.2
1515
COPY ./Gemfile* /rails/
1616

1717
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
18-
ENV BUNDLE_WITHOUT=mysql
18+
ENV BUNDLE_WITHOUT=mysql agoo falcon unicorn
1919
RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

2323
ENV RAILS_ENV=production_postgresql
2424
ENV PORT=8080
2525
ENV REDIS_URL=redis://localhost:6379/0
26-
CMD ./run-with-redis.sh
26+
CMD service redis-server start
27+
CMD rails server

frameworks/Ruby/rails/run-with-redis.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)