Update Ruby to 2.7.5, optimize Rails configuration, update Puma and Wkhtmltopdf [SCI-6403]

This commit is contained in:
Oleksii Kriuchykhin 2022-01-07 11:20:11 +01:00
parent 277b5f6eec
commit 7aeeb81fb7
6 changed files with 23 additions and 10 deletions

View file

@ -1,7 +1,7 @@
FROM ruby:2.7.2-buster
FROM ruby:2.7.5-bullseye
MAINTAINER BioSistemika <info@biosistemika.com>
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
# additional dependecies
# libreoffice for file preview generation

View file

@ -1,7 +1,7 @@
FROM ruby:2.7.2-buster
FROM ruby:2.7.5-bullseye
MAINTAINER BioSistemika <info@biosistemika.com>
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
ARG WKHTMLTOPDF_PACKAGE_URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
# additional dependecies
# libreoffice for file preview generation

View file

@ -2,7 +2,7 @@
source 'http://rubygems.org'
ruby '2.7.2'
ruby '2.7.5'
gem 'bootsnap', require: false
gem 'bootstrap-sass', '~> 3.4.1'

View file

@ -440,7 +440,7 @@ GEM
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (4.0.6)
puma (5.5.1)
puma (5.5.2)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.5.2)
@ -746,7 +746,7 @@ DEPENDENCIES
yomu!
RUBY VERSION
ruby 2.7.2p137
ruby 2.7.5p203
BUNDLED WITH
2.1.4

View file

@ -1,6 +1,21 @@
require_relative 'boot'
require 'rails/all'
require 'rails'
%w(
active_record/railtie
active_storage/engine
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
sprockets/railtie
).each do |railtie|
begin
require railtie
rescue LoadError
end
end
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.

View file

@ -50,8 +50,6 @@ CREATE FUNCTION public.trim_html_tags(input text, OUT output text) RETURNS text
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: active_storage_attachments; Type: TABLE; Schema: public; Owner: -
--