From abbb8309527468fe312cefc8d5375db3867c76a7 Mon Sep 17 00:00:00 2001 From: meyric Date: Fri, 23 Aug 2024 09:17:05 +0100 Subject: [PATCH] Remove Ruby 2 and Rails 5 defaults We are dropping integration test support for these end of life versions. This work will focus solely on the integration tests and not the gem itself. --- Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b1cbc7..22204fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -# We want to support older Rubies -ARG RUBY_VERSION=2.7.8 +ARG RUBY_VERSION=3.1.6 FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base # Rails app lives here @@ -12,9 +11,6 @@ FROM base AS build RUN apt-get update -qq && \ apt-get install --no-install-recommends -y build-essential curl git -# Install Nokigiri version that supports Ruby 2.7.8 -RUN gem install nokogiri -v 1.15.6 - # Install Rails ARG RAILS_VERSION=7.2.1 RUN gem install rails -v ${RAILS_VERSION} @@ -27,9 +23,6 @@ WORKDIR mail-notify-integration # install the gems into the bundle RUN bundle install -# remove gems that will not work in Rails 5.2.8.1 -RUN if [ "${RAILS_VERSION}" = "5.2.8.1" ]; then bundle remove selenium-webdriver chromedriver-helper; fi - # Final stage for app image FROM base