From 4ee69a9e98d0e903fd03879f6550df3a2302ad6c Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Mon, 9 Sep 2024 18:25:09 -0600 Subject: [PATCH] Update rails test Dockerfile --- .../components/rubytestserver/testapi/Dockerfile | 6 ++++-- .../components/rubytestserver/testapi/Dockerfile_tls | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/integration/components/rubytestserver/testapi/Dockerfile b/test/integration/components/rubytestserver/testapi/Dockerfile index 2eee396e1..45ea05bd3 100644 --- a/test/integration/components/rubytestserver/testapi/Dockerfile +++ b/test/integration/components/rubytestserver/testapi/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.0.2 as builder +FROM ruby:3.0.2 AS builder # Set the working directory to /build WORKDIR /build @@ -8,8 +8,10 @@ COPY test/integration/components/rubytestserver/testapi . # Install Rails RUN gem install rails -RUN gem install bundler rails +RUN gem install bundler RUN bundle install +RUN bundle exec rake app:update:bin +RUN bin/rails db:migrate EXPOSE 3040 diff --git a/test/integration/components/rubytestserver/testapi/Dockerfile_tls b/test/integration/components/rubytestserver/testapi/Dockerfile_tls index ea7e47f71..1931e7bbc 100644 --- a/test/integration/components/rubytestserver/testapi/Dockerfile_tls +++ b/test/integration/components/rubytestserver/testapi/Dockerfile_tls @@ -1,4 +1,4 @@ -FROM ruby:3.0.2 as builder +FROM ruby:3.0.2 AS builder # Set the working directory to /build WORKDIR /build @@ -8,8 +8,10 @@ COPY test/integration/components/rubytestserver/testapi . # Install Rails RUN gem install rails -RUN gem install bundler rails +RUN gem install bundler RUN bundle install +RUN bundle exec rake app:update:bin +RUN bin/rails db:migrate EXPOSE 3043