Browse Source

[ruby-padrino] Pin rack version to 2.2 (#8854)

Padrino doesn't work yet with rack 3.
Also remove deprecated `--path` option from bundle command.
Petrik de Heus 1 year ago
parent
commit
770ef723f8

+ 1 - 0
frameworks/Ruby/padrino/Gemfile

@@ -8,3 +8,4 @@ gem 'slim', '2.0.3'
 gem 'dm-mysql-adapter', '1.2.0'
 gem 'dm-core', '1.2.1'
 gem 'padrino', '0.15.3'
+gem 'rack', '~> 2.2'

+ 1 - 1
frameworks/Ruby/padrino/padrino-unicorn.dockerfile

@@ -9,7 +9,7 @@ COPY config.ru config.ru
 COPY Gemfile Gemfile
 COPY Rakefile Rakefile
 
-RUN bundle install --jobs=4 --gemfile=/padrino/Gemfile --path=/padrino/padrino/bundle
+RUN bundle install --jobs=4 --gemfile=/padrino/Gemfile
 
 RUN apt-get update -yqq && apt-get install -yqq nginx
 

+ 1 - 1
frameworks/Ruby/padrino/padrino.dockerfile

@@ -9,7 +9,7 @@ COPY config.ru config.ru
 COPY Gemfile Gemfile
 COPY Rakefile Rakefile
 
-RUN bundle install --jobs=4 --gemfile=/padrino/Gemfile --path=/padrino/padrino/bundle
+RUN bundle install --jobs=4 --gemfile=/padrino/Gemfile
 
 EXPOSE 8080