Actualizar ruby
This commit is contained in:
parent
55519925ce
commit
30af4f19b0
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
# el mismo repositorio de trabajo. Cuando tengamos CI/CD algunas cosas
|
# el mismo repositorio de trabajo. Cuando tengamos CI/CD algunas cosas
|
||||||
# como el tarball van a tener que cambiar porque ya vamos a haber hecho
|
# como el tarball van a tener que cambiar porque ya vamos a haber hecho
|
||||||
# un clone/pull limpio.
|
# un clone/pull limpio.
|
||||||
FROM alpine:3.13.5 AS build
|
FROM alpine:3.13.6 AS build
|
||||||
MAINTAINER "sutty <sutty@sutty.nl>"
|
MAINTAINER "sutty <sutty@sutty.nl>"
|
||||||
|
|
||||||
ARG RAILS_MASTER_KEY
|
ARG RAILS_MASTER_KEY
|
||||||
|
@ -16,7 +16,7 @@ ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY
|
||||||
|
|
||||||
RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake postgresql-libs
|
RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake postgresql-libs
|
||||||
|
|
||||||
RUN test "2.7.3" = `ruby -e 'puts RUBY_VERSION'`
|
RUN test "2.7.5" = `ruby -e 'puts RUBY_VERSION'`
|
||||||
|
|
||||||
# https://github.com/rubygems/rubygems/issues/2918
|
# https://github.com/rubygems/rubygems/issues/2918
|
||||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
||||||
|
@ -67,7 +67,7 @@ RUN apk add --no-cache findutils
|
||||||
RUN find /home/app/checkout/vendor/ruby/2.7.0 -maxdepth 3 -type d -name test -o -name spec -o -name rubocop | xargs -r rm -rf
|
RUN find /home/app/checkout/vendor/ruby/2.7.0 -maxdepth 3 -type d -name test -o -name spec -o -name rubocop | xargs -r rm -rf
|
||||||
|
|
||||||
# Contenedor final
|
# Contenedor final
|
||||||
FROM sutty/monit:latest
|
FROM registry.nulo.in/sutty/monit:3.13.6
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV production
|
||||||
|
|
||||||
# Instalar las dependencias, separamos la librería de base de datos para
|
# Instalar las dependencias, separamos la librería de base de datos para
|
||||||
|
@ -76,7 +76,7 @@ RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-b
|
||||||
RUN apk add --no-cache postgresql-libs
|
RUN apk add --no-cache postgresql-libs
|
||||||
|
|
||||||
# Chequear que la versión de ruby sea la correcta
|
# Chequear que la versión de ruby sea la correcta
|
||||||
RUN test "2.7.3" = `ruby -e 'puts RUBY_VERSION'`
|
RUN test "2.7.5" = `ruby -e 'puts RUBY_VERSION'`
|
||||||
|
|
||||||
# https://github.com/rubygems/rubygems/issues/2918
|
# https://github.com/rubygems/rubygems/issues/2918
|
||||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,7 +1,7 @@
|
||||||
source 'https://gems.sutty.nl'
|
source 'https://gems.sutty.nl'
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||||
|
|
||||||
ruby '2.7.3'
|
ruby '~>2.7.0'
|
||||||
|
|
||||||
# Blazer: 'blazer', github: https://github.com/ankane/blazer
|
# Blazer: 'blazer', github: https://github.com/ankane/blazer
|
||||||
gem 'blazer'
|
gem 'blazer'
|
||||||
|
|
Loading…
Reference in a new issue