Skip to content

Commit

Permalink
Upgrade Ruby to 3.2.3 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeybe2 authored Mar 12, 2024
1 parent 4de1700 commit a20db97
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
17 changes: 11 additions & 6 deletions epicbox-ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM ruby:2.5.3-alpine
MAINTAINER Stepik Team <ab@stepik.org>
FROM ruby:3.2.3-alpine3.18
LABEL maintainer="Stepik Team <team@stepik.org>"

RUN adduser -DH -h /sandbox sandbox && \
apk add --no-cache --virtual build-dependencies build-base && \
apk add --no-cache sqlite-dev && \
gem install rspec:3.8.0 sqlite3:1.3.13 sequel:5.15.0 && \
RUN adduser -DH -h /sandbox sandbox

WORKDIR /sandbox

COPY Gemfile Gemfile.lock ./

RUN apk add --no-cache --virtual build-dependencies build-base sqlite-dev make gcc musl-dev && \
bundle config --global frozen 1 && \
bundle install && \
apk del build-dependencies
5 changes: 5 additions & 0 deletions epicbox-ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "rspec", "~> 3.13"
gem "sqlite3", "~> 1.7"
gem "sequel", "~> 5.78"
32 changes: 32 additions & 0 deletions epicbox-ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
GEM
remote: https://rubygems.org/
specs:
bigdecimal (3.1.6)
diff-lcs (1.5.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
sequel (5.78.0)
bigdecimal
sqlite3 (1.7.2-x86_64-linux)

PLATFORMS
x86_64-linux-musl

DEPENDENCIES
rspec (~> 3.13)
sequel (~> 5.78)
sqlite3 (~> 1.7)

BUNDLED WITH
2.4.10

0 comments on commit a20db97

Please sign in to comment.