diff --git a/test/Dockerfile b/test/Dockerfile index 570bd16..70f674e 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,11 +1,12 @@ -FROM centos/ruby-22-centos7 +FROM registry.access.redhat.com/ubi8/ruby-27 USER default EXPOSE 8080 ENV RACK_ENV production ENV RAILS_ENV production COPY . /opt/app-root/src/ -RUN scl enable rh-ruby22 "bundle install" -CMD ["scl", "enable", "rh-ruby22", "./run.sh"] +ENV GEM_HOME ~/.gem +RUN bundle install +CMD ["./run.sh"] USER root RUN chmod og+rw /opt/app-root/src/db diff --git a/test/Gemfile b/test/Gemfile index da602cd..901156f 100644 --- a/test/Gemfile +++ b/test/Gemfile @@ -1,9 +1,9 @@ source 'https://rubygems.org' -gem 'sinatra', '2.0.5' -gem 'sinatra-activerecord', '2.0.13' -gem 'mysql2', '0.4.10' -gem 'rake', '12.3.0' -gem 'minitest', '5.11.3' -gem 'i18n', '0.9.3' - +gem 'sinatra', '2.1.0' +gem 'sinatra-activerecord', '2.0.22' +gem 'mysql2', '0.5.3' +gem 'rake', '13.0.3' +gem 'minitest', '5.14.4' +gem 'i18n', '1.8.9' +gem 'webrick', '1.7.0' diff --git a/test/Gemfile.lock b/test/Gemfile.lock index ab3c480..8418c66 100644 --- a/test/Gemfile.lock +++ b/test/Gemfile.lock @@ -1,48 +1,51 @@ GEM remote: https://rubygems.org/ specs: - activemodel (5.1.4) - activesupport (= 5.1.4) - activerecord (5.1.4) - activemodel (= 5.1.4) - activesupport (= 5.1.4) - arel (~> 8.0) - activesupport (5.1.4) + activemodel (6.1.3.2) + activesupport (= 6.1.3.2) + activerecord (6.1.3.2) + activemodel (= 6.1.3.2) + activesupport (= 6.1.3.2) + activesupport (6.1.3.2) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) - minitest (~> 5.1) - tzinfo (~> 1.1) - arel (8.0.0) - concurrent-ruby (1.0.5) - i18n (0.9.3) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + concurrent-ruby (1.1.8) + i18n (1.8.9) concurrent-ruby (~> 1.0) - minitest (5.11.3) - mustermann (1.0.3) - mysql2 (0.4.10) - rack (2.0.6) - rack-protection (2.0.5) + minitest (5.14.4) + mustermann (1.1.1) + ruby2_keywords (~> 0.0.1) + mysql2 (0.5.3) + rack (2.2.3) + rack-protection (2.1.0) rack - rake (12.3.0) - sinatra (2.0.5) + rake (13.0.3) + ruby2_keywords (0.0.4) + sinatra (2.1.0) mustermann (~> 1.0) - rack (~> 2.0) - rack-protection (= 2.0.5) + rack (~> 2.2) + rack-protection (= 2.1.0) tilt (~> 2.0) - sinatra-activerecord (2.0.13) - activerecord (>= 3.2) + sinatra-activerecord (2.0.22) + activerecord (>= 4.1) sinatra (>= 1.0) - thread_safe (0.3.6) - tilt (2.0.9) - tzinfo (1.2.5) - thread_safe (~> 0.1) + tilt (2.0.10) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + webrick (1.7.0) + zeitwerk (2.4.2) PLATFORMS ruby DEPENDENCIES - i18n (= 0.9.3) - minitest (= 5.11.3) - mysql2 (= 0.4.10) - rake (= 12.3.0) - sinatra (= 2.0.5) - sinatra-activerecord (= 2.0.13) + i18n (= 1.8.9) + minitest (= 5.14.4) + mysql2 (= 0.5.3) + rake (= 13.0.3) + sinatra (= 2.1.0) + sinatra-activerecord (= 2.0.22) + webrick (= 1.7.0)