From 0e3dcc0444546167479e00fd7aeef221914020f7 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 7 Oct 2019 09:59:30 +1100 Subject: [PATCH] chore: add mysql2 gem to Dockerfile --- Dockerfile | 2 ++ Gemfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bf01fdbbc..2030e188f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM ruby:2.5.3-alpine +ENV INSTALL_MYSQL=true RUN apk update \ && apk --no-cache add \ "build-base>=0.5" \ @@ -10,6 +11,7 @@ RUN apk update \ "sqlite-dev>=3.28" \ "sqlite>=3.28" \ "tzdata>=2019" \ + "mariadb-dev>=10.3" \ && rm -rf /var/cache/apk/* WORKDIR /app diff --git a/Gemfile b/Gemfile index f79bc4e3f..d939c2c5e 100644 --- a/Gemfile +++ b/Gemfile @@ -5,5 +5,5 @@ gemspec gem 'simplecov', :require => false, :group => :test if ENV['INSTALL_MYSQL'] == "true" - gem 'mysql2', '~>0.3.15' + gem 'mysql2', '~>0.5' end \ No newline at end of file