From d88fabf4f73d763780bf1fdf391070c93d992492 Mon Sep 17 00:00:00 2001 From: Jamie Cobbett Date: Wed, 23 Oct 2024 15:14:55 +0100 Subject: [PATCH] Add rails 7.2 to test suite --- meta_request/Dockerfile-rails-7.2 | 36 +++++++++++++++++++++++++++++++ meta_request/docker-compose.yml | 4 ++++ 2 files changed, 40 insertions(+) create mode 100644 meta_request/Dockerfile-rails-7.2 diff --git a/meta_request/Dockerfile-rails-7.2 b/meta_request/Dockerfile-rails-7.2 new file mode 100644 index 0000000..c58d7ed --- /dev/null +++ b/meta_request/Dockerfile-rails-7.2 @@ -0,0 +1,36 @@ +FROM ruby:3.1-alpine + +RUN apk add --update --no-cache \ + build-base \ + curl-dev \ + git \ + nodejs \ + shared-mime-info \ + sqlite-dev \ + tzdata \ + yaml-dev \ + yarn \ + zlib-dev + +RUN mkdir /app /gem +WORKDIR /app + +RUN gem update --system 3.5.7 +RUN bundle config force_ruby_platform true +RUN gem install rails -v 7.2.1.1 +RUN rails new . + +COPY . /gem +RUN bundle add meta_request --path /gem +RUN bundle install + +COPY res/routes.rb /app/config/ +COPY res/dummy_controller.rb /app/app/controllers/ +COPY res/dummy /app/app/views/dummy +COPY res/meta_request_test.rb /app/test/integration/ + +RUN bundle exec rails db:migrate + +ENV PARALLEL_WORKERS 1 + +CMD ["bin/rake"] diff --git a/meta_request/docker-compose.yml b/meta_request/docker-compose.yml index ebdbe9d..9ee56d0 100644 --- a/meta_request/docker-compose.yml +++ b/meta_request/docker-compose.yml @@ -25,3 +25,7 @@ services: build: context: . dockerfile: Dockerfile-rails-7.1 + test-rails-7.2: + build: + context: . + dockerfile: Dockerfile-rails-7.2