update to use ruby 2.7.1

master
Thomas Riboulet 4 years ago
parent 0f184f622e
commit 9d88fb22ef

@ -0,0 +1,16 @@
kind: pipeline
name: default
steps:
- name: build image
image: ruby:2.7.1-slim
commands:
- apt-get update -y && apt-get install -y curl build-essential
- curl https://get.docker.io/builds/Linux/x86_64/docker-latest -o /usr/local/bin/docker
- chmod +x /usr/local/bin/docker
- gem install bundler:2.1.4
- bundle config set deployment 'true'
- bundle config set without 'development test'
- bundle install
- make build_docker
- make push_docker

@ -0,0 +1 @@
ruby 2.7.1

@ -1,14 +1,28 @@
FROM ruby:2.3.5-slim FROM ruby:2.7.1-slim
RUN apt-get update && apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev curl libyaml-0-2 libxml2-dev libxslt-dev RUN apt-get update \
#RUN apk --update add --virtual openssl-dev build-dependencies ruby-dev build-base && apt-get install -y \
build-essential \
libffi-dev \
libgdbm-dev \
libncurses5-dev \
libreadline-dev \
libssl-dev \
libyaml-dev \
zlib1g-dev \
curl \
libyaml-0-2 \
libxml2-dev \
libxslt-dev
# Set environment variables. # Set environment variables.
ENV HOME /var/app ENV HOME /var/app
ENV RACK_ENV production ENV RACK_ENV production
# Define working directory. # Define working directory.
ADD . /var/app ADD . /var/app
RUN cd /var/app; bundle install --without development test RUN bundle config set deployment 'true' \
&& bundle config set without 'development test'
RUN cd /var/app; bundle install
WORKDIR /var/app WORKDIR /var/app

@ -1,26 +1,32 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
concurrent-ruby (1.0.5) connection_pool (2.2.2)
connection_pool (2.2.1) haml (5.1.2)
haml (4.0.5) temple (>= 0.8.0)
tilt tilt
puma (2.11.1) mustermann (1.1.1)
rack (>= 1.1, < 2.0) ruby2_keywords (~> 0.0.1)
rack (1.6.11) nio4r (2.5.2)
rack-protection (1.5.5) puma (4.3.5)
nio4r (~> 2.0)
rack (2.2.2)
rack-protection (2.0.8.1)
rack rack
redis (4.0.1) redis (4.1.4)
sidekiq (5.0.5) ruby2_keywords (0.0.2)
concurrent-ruby (~> 1.0) sidekiq (6.0.7)
connection_pool (~> 2.2, >= 2.2.0) connection_pool (>= 2.2.2)
rack-protection (>= 1.5.0) rack (~> 2.0)
redis (>= 3.3.4, < 5) rack-protection (>= 2.0.0)
sinatra (1.4.4) redis (>= 4.1.0)
rack (~> 1.4) sinatra (2.0.8.1)
rack-protection (~> 1.4) mustermann (~> 1.0)
tilt (~> 1.3, >= 1.3.4) rack (~> 2.0)
tilt (1.4.1) rack-protection (= 2.0.8.1)
tilt (~> 2.0)
temple (0.8.2)
tilt (2.0.10)
PLATFORMS PLATFORMS
ruby ruby
@ -32,4 +38,4 @@ DEPENDENCIES
sinatra sinatra
BUNDLED WITH BUNDLED WITH
1.16.0 2.1.4

Loading…
Cancel
Save